-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIowa_SGP.R
53 lines (28 loc) · 958 Bytes
/
Iowa_SGP.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
#############################################################
###
### Script to perform initial SGP analyses for Iowa
###
#############################################################
### Load SGP Package
require(SGP)
### Load LONG data
load("Iowa_Data_LONG.Rdata")
### prepareSGP
Iowa_SGP <- prepareSGP(Iowa_Data_LONG, fix.duplicates="KEEP.ALL")
save(Iowa_SGP, file="Iowa_SGP.Rdata")
### analyzeSGP
Iowa_SGP <- analyzeSGP(Iowa_SGP
sgp.percentiles=TRUE,
sgp.projections=TRUE,
sgp.projections.lagged=TRUE,
sgp.percentiles.baseline=FALSE,
sgp.projections.baseline=FALSE,
sgp.projections.lagged.baseline=FALSE)
save(Iowa_SGP, file="Iowa_SGP.Rdata")
### combineSGP
Iowa_SGP <- combineSGP(Iowa_SGP, sgp.target.scale.scores=TRUE)
save(Iowa_SGP, file="Iowa_SGP.Rdata")
### visualizeSGP
visualizeSGP(Iowa_SGP, plot.types=c("growthAchievementPlot", "studentGrowthPlot"), sgPlot.demo.report=TRUE)
### outputSGP
outputSGP(Iowa_SGP)