-
Notifications
You must be signed in to change notification settings - Fork 0
/
New_Jersey_SGP_2015.R
65 lines (50 loc) · 1.72 KB
/
New_Jersey_SGP_2015.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
58
59
60
61
62
63
64
65
####################################################################
###
### Code to update SGP analyses for New Jersey for 2015
###
####################################################################
### Load SGP Package
require(SGP)
require(data.table)
### Load data
load("Data/New_Jersey_Data_LONG_2015.Rdata")
load("Data/New_Jersey_SGP.Rdata")
#### Source Configurations
source("SGP_CONFIG/2015/ELA.R")
source("SGP_CONFIG/2015/MATHEMATICS.R")
NJ.config <- c(ELA_2015.config, MATHEMATICS_2015.config)
### updateSGP
New_Jersey_SGP <- updateSGP(
New_Jersey_SGP,
New_Jersey_Data_LONG_2015,
sgp.config=NJ.config,
steps = c("analyzeSGP", "combineSGP", "summarizeSGP", "outputSGP"), #
sgp.percentiles.baseline = FALSE,
sgp.projections.baseline = FALSE,
sgp.projections.lagged.baseline = FALSE,
sgp.percentiles.equated=TRUE,
sgp.target.scale.scores=TRUE,
# outputSGP.output.type=c("LONG_Data", "LONG_FINAL_YEAR_Data"),
save.intermediate.results=FALSE,
parallel.config=list(
# BACKEND='FOREACH', TYPE="doParallel",
BACKEND="PARALLEL",
WORKERS=list(
PERCENTILES=10, PROJECTIONS=8, LAGGED_PROJECTIONS=8,
SGP_SCALE_SCORE_TARGETS=8,
SUMMARY=12)))
### Produce 2015 visualizations
visualizeSGP(
New_Jersey_SGP,
# plot.types="studentGrowthPlot", #c("bubblePlot",
sgPlot.content_areas = c("ELA", "MATHEMATICS"),
gaPlot.content_areas = c("ELA", "MATHEMATICS"),
sgPlot.demo.report=TRUE,
parallel.config=list(
BACKEND='FOREACH', TYPE="doParallel",
WORKERS=list(GA_PLOTS=12, SG_PLOTS=1)))
### Save results
Summary <- New_Jersey_SGP@Summary
New_Jersey_SGP@Summary <- NULL
save(New_Jersey_SGP, file="Data/New_Jersey_SGP.Rdata")
save(Summary, file="Data/New_Jersey_SGP_Summary_2015.Rdata")