Last active
January 19, 2016 19:39
-
-
Save dbetebenner/dba9fc82859b780f15e2 to your computer and use it in GitHub Desktop.
Michigan District Analyses
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################################### | |
### | |
### R script to run SGP analyses for Michigan | |
### | |
###################################################################### | |
### Load packages | |
library("SGP") | |
library("data.table") | |
### Load data | |
Michigan_Data_LONG <-fread("Data/FLSH1115.csv", colClasses=rep("character", 9)) | |
Michigan_Data_LONG$VALID_CASE <- "VALID_CASE" | |
Michigan_Data_LONG$SCALE_SCORE <- as.numeric(Michigan_Data_LONG$SCALE_SCORE) | |
Michigan_Data_LONG$DISTRICT_NUMBER <- NULL | |
Michigan_Data_LONG$SCHOOL_NAME <- NULL | |
### STEP 1: prepareSGP | |
Michigan_SGP <- prepareSGP(Michigan_Data_LONG, state = "MI") | |
### STEP 2: analyzeSGP | |
Michigan_SGP <- analyzeSGP( | |
Michigan_SGP, | |
years="2014_2015", | |
sgp.percentiles=TRUE, | |
sgp.projections=TRUE, | |
sgp.projections.lagged=TRUE, | |
sgp.percentiles.baseline=FALSE, | |
sgp.projections.baseline=FALSE, | |
sgp.projections.lagged.baseline=FALSE, | |
sgp.percentiles.equated=TRUE) | |
### STEP 3: combineSGP | |
Michigan_SGP <- combineSGP(Michigan_SGP, years="2014_2015") | |
### STEP 4: outputSGP | |
outputSGP(Michigan_SGP) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment