Recently Published
Rejoinder to “Endogeneity bias in marketing research: Problem, causes and remedies”
Here I provide the code for simulations reported in the paper
Speed comparison
Here I compare execution times for row binding
p-hacking: A demonstration
This note is a simple demonstration of p-hacking. I argue that if a researcher doesn't decide on the sample size ex ante and keeps collecting data until they reach p <=0.05, the results can be severely misleading.
United Social Media Crisis - Demo Presentation
This deck of slides is a demo of react.js using RMarkdown
ggplot2 Themes
This note is derived from Chapter 8 of ggplot2 book authored by Hadley
Random Forest and Credit Score
This is a simple example on using random forest for getting default risk and building credit score. This is a part of the DA 6813 course in UTSA MSDA program.
ROC Curve
Example for the UTSA students taking my DA 6813 course
Homework #1 - DA 6813
This homework was shared with the students at the beginning of October.
Homework #1
This is the solution of homework #1 for DA 6813
Ordinal Regression
This is a note for the UTSA students taking my DA 6813 course
Calculating CLV
This note is for the UTSA students taking my Data Analytics Applications (DA 6813) course
A Simple Example of Bootstrap
Shows you the power of bootstrap
Estimating Multinomial Logistic Regression Model in R
This is a note for the UTSA students taking my DA 6813 course.
Twitter Text Analysis
This note is for the UTSA students taking my DA 6813 course.
Dimensionality Reduction
These are class notes for DA 6213 at UTSA.
Example of Cross-Validation
Hand coding cross-validation in R
Analytics methods flowchart
This is a flowchart of the methods to use depending on the target variable type. The methods are limited to what we use in the DA 6813 course at UTSA
Support Vector Machines example
SVM example for the students of Data Analytics Application course (DA 6813) at the College of Business, UT at San Antonio
Cluster Analysis Example
K-means clustering on wine quality data