Skip to content
Adam VanIwaarden edited this page Jan 31, 2017 · 2 revisions

2015 SGP Analyses

For the 2015 Hawaii SGP analyses, we are updating analyses done in 2014 using the updateSGP function. The source code can be copied and pasted into R or executed using the R source command. Note that the paths associated with the data being loaded might have to be adjusted based upon how your folders are set up.

In this analysis, updateSGP takes the Hawaii_SGP object containing all data and analyses up to 2014 and augments that with the 2015 data and subsequently runs all the 2015 analyses.

###########################################################
###
### Hawaii SGP Analysis for 2015
###
###########################################################

### Load SGP Package

require(SGP)


### Load previous SGP object and 2015 data

load("Data/Hawaii_SGP.Rdata")
load("Data/Hawaii_Data_LONG_2015.Rdata")
load("Data/Hawaii_Data_LONG_2015_INSTRUCTOR_NUMBER.Rdata")


### Update SGPs

Hawaii_SGP <-
	updateSGP(
		Hawaii_SGP,
		Hawaii_Data_LONG_2015,
		Hawaii_Data_LONG_2015_INSTRUCTOR_NUMBER,
		sgp.percentiles.equated=TRUE,
		sgPlot.demo.report=TRUE,
		parallel.config=list(
			BACKEND="PARALLEL",
			WORKERS=list(
				PERCENTILES=4,
				PROJECTIONS=4,
				LAGGED_PROJECTIONS=4,
				SUMMARY=4,
				GA_PLOTS=4,
				SG_PLOTS=1)))


### Save results

save(Hawaii_SGP, file="Data/Hawaii_SGP.Rdata")

Running this analysis will internally run the six steps mentioned earlier by performing the following:

  1. prepareSGP Combines the 2015 LONG data file with the existing longitudinal LONG file in Hawaii_SGP@Data and run checks associated with prepareSGP on merge result.
  2. analyzeSGP Performs 2015 SGP analyses including student growth percentiles, student growth projections, and lagged student growth projections.
  3. combineSGP Merges results from 2015 analyses back into the master longitudinal record, Hawaii_SGP@Data, and calculates/creates scale scores associated with SGP targets.
  4. summarizeSGP Saves previous summaries to hard disk, Hawaii_SGP@Summary, as Hawaii_SGP_Summary_2012.Rdata and calculates new summaries for the current year.
  5. visualizeSGP Creates state level summary bubble plots, growth achievement plots (wave charts), and demonstration student growth plots.
  6. outputSGP Exports data in multiple formats:
  • Hawaii_SGP_Data_LONG.txt.zip a pipe delimited copy of Hawaii_SGP@Data, the complete master longitudinal record.
  • Hawaii_SGP_Data_LONG_2015.txt.zip a pipe delimited copy of the 2015 longitudinal record subsetted from Hawaii_SGP@Data.
  • Hawaii_SGPData_WIDE.txt.zip a pipe delimited WIDE version of the master longitudinal record, Hawaii_SGP@Data.
  • Hawaii_SGP_INSTRUCTOR_Data.txt.zip a pipe delimited LONG version of the INSTRUCTOR_NUMBER file merged with the master longitudinal data record.