Stat Tutorials
To Get Started on R
- 2018 Workshop files:
- Session 1 (Introduction to RStudio)
- PDF Slides
- Sample Data (Chapman.sav)
- R Script File (file here)
- Session 2 (Basic Data Analysis)
- R Script File (file here)
- Session 3
- Basic Document Production (R markdown file)
- Session 1 (Introduction to RStudio)
Reading SPSS file to R / Run basic stats (BasicDemo01.R) (revised on 3/10/2017)
- Sample Data (Chapman.sav)
- Functions to output correlation matrix with significance levels (corstar.R)
Measurement Invariance Test by R
- Using lavaan package (MeasInvarianceDemo01.R)
- Using MplusAutomation package (MeasInvarianceDemo02.R)
Multilevel Modeling by R
- HLM book example (MultilevelModeling01.R) (HSB.dat)
- Longitudinal data example
Propensity Score Matching by R
- Presentation on 4/12/2017 (Slides in PDF) (R markdown file)
Bayesian Analysis
- Workshop files:
- Mac (BayesWS2017.zip)
- Windows (BayesWS2017.rar)
- Topic 1: Introduction to Bayesian Inference (PDF slides)
- Topic 2: Regression Analysis (PDF slides)
- Running Regression with JAGS via rjags R package (R code)
- Running Regression with Mplus via MplusAutomation R package (R code)
- Topic 3: Mediation Analysis
- Mediation analysis with JAGS via rjags R package
- Mediation analysis with Mplus via MplusAutomation R package
R Notebook
- Real basic (RNotebookDemo01.Rmd)
R Shiny