-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWIDA_RI_SGP_Baseline_2020_C_Growth_Projections.R
More file actions
38 lines (32 loc) · 1.52 KB
/
WIDA_RI_SGP_Baseline_2020_C_Growth_Projections.R
File metadata and controls
38 lines (32 loc) · 1.52 KB
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
##########################################################################################
### ###
### WIDA Rhode Island Learning Loss Analyses -- 2020 Baseline Growth Projections ###
### ###
##########################################################################################
### Load packages
require(SGP)
### Load data from baseline SGP analyses
load("Data/WIDA_RI_SGP.Rdata")
### Add single-cohort baseline matrices to SGPstateData
SGPstateData <- SGPmatrices::addBaselineMatrices("WIDA_RI", "2021")
#SGPstateData <- SGPmatrices::addBaselineMatrices("WIDA", "2021", "WIDA_RI")
#####
### Run projections analysis - run abcSGP on object from BASELINE SGP analysis
#####
WIDA_RI_SGP <- abcSGP(
sgp_object = WIDA_RI_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_RI_SGP, file="Data/WIDA_RI_SGP.Rdata")