Learn R Programming

SGP (version 1.0-3.0)

gofSGP: Function for producing goodness of fit plots using existing SGP object

Description

gofSGP creates goodness-of-fit plots in either PDF or PNG for showing SGP distribution by prior achievement level and prior scale score decile. These plots expand upon the plots currently produced with the studentGrowthPercentiles function.

Usage

gofSGP(
	sgp_object,
	state=NULL,
	years=NULL,
	content_areas=NULL,
	grades=NULL,
	use.sgp="SGP",
	output.format="PDF",
	color.scale="reds.and.blues")

Arguments

sgp_object
The SGP object from which the goodness-of-fit data will be used.
state
The 'state' for the sgp_object. Derive from sgp_object name if not explicitly supplied.
years
The years that goodness-of-fit plots are requested. Default is to use all years available.
content_areas
The content area(s) that goodness-of-fit plots are requested. Default is to use all content areas available.
grades
The grade(s) that goodness-of-fit plots are requested. Default is to use all grade available.
use.sgp
Character vectors (defaults to 'SGP') indicating what student growth percentile variable to calculate goodness-of-fit plots for.
output.format
Character vectors (defaults to 'PDF') indicating what driver to use to output results. Options currently include 'PDF' and 'PNG'.
color.scale
Character vectors (defaults to 'red') indicating what color palette to use for creating percentile distribution table.

Value

  • Returns output ('PDF' or 'PNG') associated with goodness-of-fit analyses.

See Also

studentGrowthPercentiles

Examples

Run this code
Demonstration_SGP <- abcSGP(sgpData_LONG)
gofSGP(Demonstration_SGP)

Run the code above in your browser using DataLab