-
Notifications
You must be signed in to change notification settings - Fork 1
/
Massachusetts_SGP_2024.R
57 lines (47 loc) · 2.17 KB
/
Massachusetts_SGP_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
49
50
51
52
53
54
55
56
57
####################################################################################################
### ###
### SGP analyses for 2024 ###
### ###
####################################################################################################
### Load packages
require(SGP)
require(SGPmatrices)
### Load data
load("Data/Massachusetts_SGP.Rdata")
load("Data/Massachusetts_Data_LONG_2024.Rdata")
### Load configurations
source("SGP_CONFIG/2024/ELA.R")
source("SGP_CONFIG/2024/MATHEMATICS.R")
MA_CONFIG <- c(ELA_2024.config, MATHEMATICS_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))
### Add Baseline matrices to SGPstateData
SGPstateData <- addBaselineMatrices("MA", "2024")
# Establish required meta-data for STRAIGHT projection sequences
SGPstateData[["MA"]][["SGP_Configuration"]][["grade.projection.sequence"]] <- list(
ELA=c(3, 4, 5, 6, 7, 8, 10),
MATHEMATICS=c(3, 4, 5, 6, 7, 8, 10))
SGPstateData[["MA"]][["SGP_Configuration"]][["content_area.projection.sequence"]] <- list(
ELA=rep("ELA", 7),
MATHEMATICS=rep("MATHEMATICS", 7))
SGPstateData[["MA"]][["SGP_Configuration"]][["max.forward.projection.sequence"]] <- list(
ELA=6,
MATHEMATICS=6)
### Run analysis
Massachusetts_SGP <- updateSGP(
Massachusetts_SGP,
Massachusetts_Data_LONG_2024,
steps=c("prepareSGP", "analyzeSGP", "combineSGP", "outputSGP"),
sgp.config=MA_CONFIG,
sgp.percentiles=TRUE,
sgp.projections=TRUE,
sgp.projections.lagged=TRUE,
sgp.percentiles.baseline=TRUE,
sgp.projections.baseline=TRUE,
sgp.projections.lagged.baseline=TRUE,
sgp.target.scale.scores=TRUE,
save.intermediate.results=FALSE,
parallel.config=parallel.config
)
### Save results
save(Massachusetts_SGP, file="Data/Massachusetts_SGP.Rdata")