-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWIDA_CO_SGP_Baseline_2020_C_Growth_Projections.R
37 lines (31 loc) · 1.42 KB
/
WIDA_CO_SGP_Baseline_2020_C_Growth_Projections.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
######################################################################################
### ###
### WIDA Colorado Learning Loss Analyses -- 2020 Baseline Growth Projections ###
### ###
######################################################################################
### Load packages
require(SGP)
### Load data from baseline SGP analyses
load("Data/WIDA_CO_SGP.Rdata")
### Add single-cohort baseline matrices to SGPstateData
SGPstateData <- SGPmatrices::addBaselineMatrices("WIDA_CO", "2021")
#####
### Run projections analysis - run abcSGP on object from BASELINE SGP analysis
#####
WIDA_CO_SGP <- abcSGP(
sgp_object = WIDA_CO_SGP,
years="2020",
steps = c("prepareSGP", "analyzeSGP"), # no changes to @Data - don't combine or output
sgp.percentiles = FALSE,
sgp.projections = FALSE,
sgp.projections.lagged = FALSE,
sgp.percentiles.baseline = FALSE,
sgp.projections.baseline = TRUE, # Need P50_PROJ_YEAR_1_CURRENT for Ho's Fair Trend/Equity Check metrics
sgp.projections.lagged.baseline = FALSE,
save.intermediate.results = FALSE,
parallel.config = list(
BACKEND = "PARALLEL",
WORKERS=list(PROJECTIONS=8))
)
### Save results
save(WIDA_CO_SGP, file="Data/WIDA_CO_SGP.Rdata")