Skip to content

Instantly share code, notes, and snippets.

View dbetebenner's full-sized avatar
🏠
Working from home

Damian Betebenner dbetebenner

🏠
Working from home
View GitHub Profile
@dbetebenner
dbetebenner / SGPs with repeated grades
Last active December 10, 2015 19:08
Running SGPs (student growth percentiles) with repeated grades
####################################################################################
###
### Test of consecutive grade progression
###
###################################################################################
### Load SGP package
require(SGP)
@dbetebenner
dbetebenner / simex_simulation.R
Created February 6, 2013 08:57
Script to test simex functionality using parallel processing and sgpData_LONG
##############################################################################################
###
### Test script of Simex functionality
###
##############################################################################################
### Load SGP package
require(SGP)
options(error=recover)
@dbetebenner
dbetebenner / year_specific_knots_TEST.R
Created February 6, 2013 23:29
This code tests whether the SGP package picks out the right knots and boundaries associated with states using year specific knots and boundaries. The SGPstateData is dummied up to test for this.
##################################################################################################
###
### Test of year specific knots
###
##################################################################################################
### Load SGP package
require(SGP)
options(error=recover)
@dbetebenner
dbetebenner / NAPLAN.R
Last active December 12, 2015 09:09
Code to demonstrate that one can apply SGP analyses to tests like NAPLAN that occur bi-annually.
######################################################################################
###
### Script to show use of SGP package with bi-annual assessment data like NAPLAN
###
######################################################################################
### Load SGP package
require(SGP)
@dbetebenner
dbetebenner / Basic SGP Test #1
Last active December 14, 2015 20:28
A basic test of the SGP function including print.other.gp, print.sgp.order. Also, changed the 'ID' variable name to show that naming convention works
###################################################################################
###
### Basic test of studentGrowthPercentiles with verbose.output=TRUE option
###
###################################################################################
### Load SGP package
require(SGP)
options(error=recover)
@dbetebenner
dbetebenner / Quantile_Regresion_with_B_Splines.R
Created August 1, 2013 08:53
Quantile regression with b-splines using R
require(splines)
require(quantreg)
### Create some data
x <- rnorm(100, mean=50, sd=10)
noise <- rnorm(100, sd=5)
y <- x + noise
@dbetebenner
dbetebenner / SGP_Calculation_using_previously_created_coefficient_matrices.R
Last active August 29, 2015 14:06
SGP Calculation using previously created coefficient matrices
### Load SGP Package and SGPdata
require(SGP)
require(SGPdata)
### Create two sets of data from embedded sgpData from, for example, grade 6:
### 1. Data for initial coefficient matrix creations
### 2. Data to be used with coefficient matrices created in 1.
@dbetebenner
dbetebenner / Basic_SGP_Projections
Last active August 29, 2015 14:06
Basic Projections using just two grades (3 and 4) of data
#########################################################################
###
### Basic percentiles and projections for two grades of data
###
#########################################################################
### Load packages
require(SGP)
require(SGPdata)
@dbetebenner
dbetebenner / Decile SGPs
Created December 5, 2014 21:42
Calculation of SGPs using alternate quantiles
####################################################
##INSTALL SGP PACKAGE
####################################################
install.packages("devtools")
require(devtools)
install_github("dbetebenner/SGP")
require(SGP)
@dbetebenner
dbetebenner / Lagged_Projections.R
Last active August 29, 2015 14:20
Creation of lagged projections using lower level functions
###################################################################################
###
### Creation of lagged projections using lower level functions
###
###################################################################################
### Update SGP & SGPdata packages to latest on GitHub
require(devtools)
install_github("centerforassessment/SGPdata")