-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWIDA_RI_SGP_2023.R
38 lines (31 loc) · 1.31 KB
/
WIDA_RI_SGP_2023.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
##########################################################################################
###
### Script for calculating SGPs for 2022-2023 WIDA/ACCESS Rhode Island
###
##########################################################################################
### Load SGP package
require(SGP)
### Load Data
load("Data/WIDA_RI_SGP.Rdata")
load("Data/WIDA_RI_Data_LONG_2023.Rdata")
### Add single-cohort baseline matrices to SGPstateData
SGPstateData <- SGPmatrices::addBaselineMatrices("WIDA_RI", "2023")
#SGPstateData <- SGPmatrices::addBaselineMatrices("WIDA", "2022", "WIDA_RI")
### Run analyses
WIDA_RI_SGP <- updateSGP(
WIDA_RI_SGP,
WIDA_RI_Data_LONG_2023,
steps=c("prepareSGP", "analyzeSGP", "combineSGP", "visualizeSGP", "outputSGP"),
sgp.percentiles=TRUE,
sgp.projections=TRUE,
sgp.projections.lagged=TRUE,
sgp.percentiles.baseline=TRUE,
sgp.projections.baseline=TRUE,
sgp.projections.lagged.baseline=TRUE,
get.cohort.data.info=TRUE,
sgp.target.scale.scores=TRUE,
plot.types=c("growthAchievementPlot", "studentGrowthPlot"),
sgPlot.demo.report=TRUE,
parallel.config=list(BACKEND="PARALLEL", WORKERS=list(PERCENTILES=4, BASELINE_PERCENTILES=4, PROJECTIONS=4, LAGGED_PROJECTIONS=4, SGP_SCALE_SCORE_TARGETS=4, GA_PLOTS=1, SG_PLOTS=1)))
### Save results
save(WIDA_RI_SGP, file="Data/WIDA_RI_SGP.Rdata")