THERE’S AN R PACKAGE FOR THAT!
CONVERTING FILES
- foreign: https://cran.r-project.org/web/packages/foreign/foreign.pdf
- – Stata, SPSS, SAS, and more
DEALING WITH ENDOGENEITY
- ivreg: https://cran.r-project.org/web/packages/ivreg/vignettes/ivreg.html
- – 2SLS (2 stage least squares)
- REndo: https://cran.r-project.org/web/packages/REndo/REndo.pdf
- – These are statistical techniques to address the endogeneity problem where no external instrumental variables are needed.
EXPORTING TO OTHER FORMATS
GROWTH MODELING
- From Psych perspective (i.e., RCM growth modeling):
- From Econ/Strategy perspective (i.e., panel data):
MODERATION
MODEL FIT TESTS AND COMPARISONS
- AICcmodavg: https://cran.r-project.org/web/packages/AICcmodavg/AICcmodavg.pdf
- ResourceSelection: https://cran.r-project.org/web/packages/ResourceSelection/ResourceSelection.pdf
- generalhoslem: https://cran.r-project.org/web/packages/generalhoslem/generalhoslem.pdf
- – Goodness of Fit Tests for Logistic Regression Models
MULTILEVEL ANALYSIS
- multilevel (RCM): https://cran.r-project.org/web/packages/multilevel/multilevel.pdf
- lme4 (RCM): https://cran.r-project.org/web/packages/lme4/lme4.pdf
- plm (fixed effects regression): https://cran.r-project.org/web/packages/lme4/lme4.pdf
MULTINOMIAL LOGISTIC REGRESSION (AKA DISCRETE CHOICE MODELS)
NETWORK ANALYSIS
STEPWISE MODEL CREATION
SUPERVISED MACHINE LEARNING
TEXT ANALYSIS
- tm: https://cran.r-project.org/web/packages/tm/tm.pdf
- – Text mining
- sentimentr: https://cran.r-project.org/web/packages/sentimentr/sentimentr.pdf
- – Calculate text polarity sentiment
- stm: https://cran.r-project.org/web/packages/stm/stm.pdf
- – Structural topic modeling
- syuzhet: https://cran.r-project.org/web/packages/syuzhet/syuzhet.pdf
- – Extracts sentiments and sentiment-derived plot arcs (over time) from text
- quanteda: https://cran.r-project.org/web/packages/quanteda/quanteda.pdf
- – Flexible text analysis tool with ability to plot co-occurrence networks, apply dictionaries, create word clouds, etc.
VISUALIZATION
WEB SCRAPING
MONTY PYTHON’S QUEST FOR THE DATA
WEB SCRAPING
BeautifulSoup: https://beautiful-soup-4.readthedocs.io/en/latest/