-
Notifications
You must be signed in to change notification settings - Fork 0
/
WIDA_IN_SGP_2022.R
37 lines (30 loc) · 1.23 KB
/
WIDA_IN_SGP_2022.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
##########################################################################################
###
### Script for calculating SGPs for 2021-2022 WIDA/ACCESS Indiana
###
##########################################################################################
### Load SGP package
require(SGP)
### Load Data
load("Data/WIDA_IN_SGP.Rdata")
load("Data/WIDA_IN_Data_LONG_2022.Rdata")
### Add single-cohort baseline matrices to SGPstateData
SGPstateData <- SGPmatrices::addBaselineMatrices("WIDA_IN", "2022")
### Run analyses
WIDA_IN_SGP <- updateSGP(
WIDA_IN_SGP,
WIDA_IN_Data_LONG_2022,
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_IN_SGP, file="Data/WIDA_IN_SGP.Rdata")