Publications by Dr. B
Document
Load in relevant packages library(tidyverse) Registered S3 methods overwritten by 'dbplyr': method from print.tbl_lazy print.tbl_sql [37m── [1mAttaching packages[22m ───────────────────────────────── tidyverse 1.3.0 ──[39m [37m[32m✓[37m [34mggplot...
10603 sym R (12411 sym/58 pcs) 6 img 1 tbl
MVS Module 3 Demonstration - Advanced Regression
Load in relevant packages library(tidyverse) Registered S3 methods overwritten by 'dbplyr': method from print.tbl_lazy print.tbl_sql [37m── [1mAttaching packages[22m ─────────────────────────────── tidyverse 1.3.0 ──[39m [37m[32m✓[37m [34mggplot2[37m ...
10250 sym R (9490 sym/49 pcs) 6 img 1 tbl
MVS Module 4 Demonstration - Advanced ANOVA
Example #1: ANCOVA with an experimental design and pretest as covariate Load in some helpful packages library(tidyverse) library(haven) Load in the dataset hap_ancova <- read_dta("hap-ancova1.dta") Explore your data glimpse(hap_ancova) Rows: 82 Columns: 4 $ id <dbl> 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, … $ hap_pre <d...
12314 sym R (11795 sym/59 pcs) 5 img
MVS Module 12 Demonstration - Intro to SEM, Part 2
This week, we tackle estimating a mediation model in an SEM framework, both with observed variables and with latent factors. Estimating A mediation model with observed variables (no latent) Load in necessary packages library(tidyverse) Registered S3 methods overwritten by 'dbplyr': method from print.tbl_lazy print.tbl_sql ...
7200 sym R (45499 sym/37 pcs) 3 img
MVS Module 10 Demonstration - Intro to CFA
Load in packages - lavaan is our “go-to” package for CFA and SEM! library(tidyverse) #all things data management Registered S3 methods overwritten by 'dbplyr': method from print.tbl_lazy print.tbl_sql ── Attaching packages ──────────────────────────────�...
9535 sym R (30957 sym/31 pcs) 6 img
MVS Module 9 Demonstration - Exploratory Factor Analysis
Step 1: Generate a Reliability Coefficient for a Set of Items Using the SPSS Anxiety Questionnaire, from Field, Ch. 17 library(psych) library(tidyverse) Registered S3 methods overwritten by 'dbplyr': method from print.tbl_lazy print.tbl_sql ── Attaching packages ──────────────────�...
9181 sym R (19805 sym/68 pcs) 2 img
MVS Module 7 Demonstration - Working with Missing Data
Part 1 - Exploring Missing Data Load in a few packages library(tidyverse) library(psych) library(naniar) Load in the data library(haven) oregon <- read_dta("oregon2004.dta") glimpse(oregon) Rows: 4,508 Columns: 8 $ ID <dbl> 100001, 100004, 100005, 100006, 100007, 100008, 100009, 100010, 1… $ com3 <dbl> 3, 5, 5, 5, 4, 3, 4, 2, 5, 3, ...
7872 sym R (8830 sym/28 pcs) 3 img
MVS Module 8 Demonstration - Intro to Cluster Analysis
Review - Cleaning and Recoding Survey Variables Load in a few packages library(corrplot) #easy correlation matrices corrplot 0.84 loaded library(tidyverse) #data manipulation Registered S3 methods overwritten by 'dbplyr': method from print.tbl_lazy print.tbl_sql ── Attaching packages ────────...
7249 sym R (13680 sym/54 pcs) 12 img
MVS Module 11 Demonstration - Structural Equation Modeling, Part 1
Load in the the data and packages We will use the same ELS dataset that we used in logistic regression week. For packages, we will use tidyverseand lavaan. library(tidyverse) library(lavaan) library(haven) els <- read_dta("ELS_Logistic.dta") glimpse(els) Rows: 16,197 Columns: 55 $ stu_id <dbl> 101101, 101102, 101104, 101105, 101106, 101107, 101...
9494 sym R (23862 sym/35 pcs) 5 img