-
Notifications
You must be signed in to change notification settings - Fork 0
/
New_Hampshire_SGP_2023_2024.R
48 lines (38 loc) · 1.74 KB
/
New_Hampshire_SGP_2023_2024.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
39
40
41
42
43
44
45
46
47
48
######################################################################################
### ###
### New Hampshire SGP analyses for 2023-2024 ###
### ###
######################################################################################
### Load packages
require(SGP)
require(SGPmatrices)
### Load data
load("Data/New_Hampshire_SGP.Rdata")
load("Data/New_Hampshire_Data_LONG_2023_2024.Rdata")
### Add Baseline matrices to SGPstateData
SGPstateData <- addBaselineMatrices("NH", "2023_2024")
### Read in SGP Configuration Scripts and Combine
source("SGP_CONFIG/2023_2024/READING.R")
source("SGP_CONFIG/2023_2024/MATHEMATICS.R")
NH_CONFIG <- c(READING_2023_2024.config, MATHEMATICS_2023_2024.config)
### Parameters
parallel.config <- list(BACKEND="PARALLEL", WORKERS=list(PERCENTILES=4, BASELINE_PERCENTILES=4, PROJECTIONS=4, LAGGED_PROJECTIONS=4, SGP_SCALE_SCORE_TARGETS=4))
#####
### Run updateSGP analysis
#####
New_Hampshire_SGP <- updateSGP(
what_sgp_object = New_Hampshire_SGP,
with_sgp_data_LONG = New_Hampshire_Data_LONG_2023_2024,
steps = c("prepareSGP", "analyzeSGP", "combineSGP", "outputSGP"),
sgp.config = NH_CONFIG,
sgp.percentiles = TRUE,
sgp.projections = TRUE,
sgp.projections.lagged = TRUE,
sgp.percentiles.baseline = TRUE,
sgp.projections.baseline = TRUE,
sgp.projections.lagged.baseline = TRUE,
save.intermediate.results = FALSE,
parallel.config = parallel.config
)
### Save results
save(New_Hampshire_SGP, file="Data/New_Hampshire_SGP.Rdata")