Publications by Janine Medina

Quant Paper from SYP

28.08.2024

#datafile and library needed library(psych) library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.2 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.2 ✔ tibble 3.2.1 ## ✔...

89 sym R (9470 sym/26 pcs)

lab 10 assignment

10.06.2023

Setting up environment library(lavaan) ## This is lavaan 0.6-15 ## lavaan is FREE software! Please report any bugs. #install.packages("simsem") library(simsem) ## ## ################################################################# ## This is simsem 0.5-16 ## simsem is BETA software! Please report any bugs. ## simsem was first developed at the Uni...

4695 sym R (12407 sym/43 pcs)

HW2

05.06.2023

library(lavaan) ## This is lavaan 0.6-15 ## lavaan is FREE software! Please report any bugs. library(semTools) ## ## ############################################################################### ## This is semTools 0.5-6 ## All users of R (or SEM) are invited to submit functions or ideas for functions. ## ########################################...

91 sym R (54314 sym/84 pcs) 4 img

EFA Lab Wk 9

02.06.2023

Extended Example Ch 6 # load Holzinger and Swineford correlations and name the variables hs.cor <- matrix(scan(file="HolzingerSwineford.dat"),ncol=14) # name the variables colnames(hs.cor) <- rownames(hs.cor) <- c("T1", "T2", "T3.4", "T6","T28", "T29","T32","T34","T35","T36a","T13","T18","T25b","T77") hs.cor ## T1 T2 T3.4 T6 T28 ...

49 sym

LCA Binary Wk 9

02.06.2023

1. Data (Mplus example data set) bdata<- read.table("ex7.4.dat") colnames(bdata) <- c("u1", "u2", "u3", "u4","c") str(bdata) ## 'data.frame': 500 obs. of 5 variables: ## $ u1: num 0 1 0 1 1 0 1 1 0 0 ... ## $ u2: num 1 0 0 1 1 1 1 1 0 0 ... ## $ u3: num 0 1 1 1 1 1 0 1 0 1 ... ## $ u4: num 1 0 1 0 0 0 0 0 0 1 ... ## $ c : int 2 2 1 2 ...

210 sym 2 img

Week 8 Lab EFA

26.05.2023

Set up environment library(psych) library(lavaan) ## This is lavaan 0.6-15 ## lavaan is FREE software! Please report any bugs. ## ## Attaching package: 'lavaan' ## The following object is masked from 'package:psych': ## ## cor2cov Import data and set up correlation matrix with variable names CorrMat <- matrix(scan(file='child_obs.dat'),ncol=...

1269 sym R (12631 sym/23 pcs) 3 img

Lab 7 Lab Assignment

19.05.2023

CFA Male v Female Latent Approach - Measurement Invariance Load libraries library(lavaan) ## This is lavaan 0.6-15 ## lavaan is FREE software! Please report any bugs. library(semTools) # For model comparison ## ## ############################################################################### ## This is semTools 0.5-6 ## All users of R (or SEM) ar...

928 sym R (59583 sym/36 pcs)

HW 1 CFA Updated

03.05.2023

library(psych) library(lavaan) ## This is lavaan 0.6-15 ## lavaan is FREE software! Please report any bugs. ## ## Attaching package: 'lavaan' ## The following object is masked from 'package:psych': ## ## cor2cov library(semTools) ## ## ############################################################################### ## This is semTools 0.5-6 #...

484 sym R (88344 sym/196 pcs) 3 img

PSYC214_HW1_AP

03.05.2023

#Began by setting working directory, creating a chunk, and reading in data. data <- read.csv("Data_HW1.csv") #Installing necessary packages and loading libraries that I'll need #install.packages("lavaan") #install.packages("semTools") #install.packages("semPlot") library(psych) library(lavaan) ## This is lavaan 0.6-15 ## lavaan is FREE softw...

93 sym R (33437 sym/86 pcs) 4 img

PSY 214 HW 1 Knitted File

02.05.2023

library(psych) library(lavaan) ## This is lavaan 0.6-15 ## lavaan is FREE software! Please report any bugs. ## ## Attaching package: 'lavaan' ## The following object is masked from 'package:psych': ## ## cor2cov library(semTools) ## ## ############################################################################### ## This is semTools 0.5-6 #...

230 sym R (1049473 sym/209 pcs) 4 img