Skip to content

Instantly share code, notes, and snippets.

@dbetebenner
Created December 5, 2014 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbetebenner/c42eb40970acfba5b967 to your computer and use it in GitHub Desktop.
Save dbetebenner/c42eb40970acfba5b967 to your computer and use it in GitHub Desktop.
Calculation of SGPs using alternate quantiles
####################################################
##INSTALL SGP PACKAGE
####################################################
install.packages("devtools")
require(devtools)
install_github("dbetebenner/SGP")
require(SGP)
####################################################
##ESTIMATE DECILE SGP
####################################################
require(SGPdata)
sgp_g4 <- studentGrowthPercentiles(panel.data=sgpData,
sgp.labels=list(my.year=2013, my.subject="Reading"),
# sgp.quantiles=seq(.05,.95,by=.10),
sgp.quantiles=1:9/10,
convert.0and100=FALSE,
subset.grade=4,
num.prior=1)
####################################################
##LOOK AT OUTPUT
####################################################
table(sgp_g4$SGPercentiles$READING.2013$SGP)
dim(sgp_g4$Coefficient_Matrices$READING.2013$qrmatrix_4_1)
head(sgp_g4$Coefficient_Matrices$READING.2013$qrmatrix_4_1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment