updateSGP( what_sgp_object=NULL, with_sgp_data_LONG=NULL, with_sgp_data_INSTRUCTOR_NUMBER=NULL, state=NULL, steps=c("prepareSGP", "analyzeSGP", "combineSGP", "summarizeSGP", "visualizeSGP", "outputSGP"), years=NULL, content_areas=NULL, grades=NULL, sgp.percentiles=TRUE, sgp.projections=TRUE, sgp.projections.lagged=TRUE, sgp.percentiles.baseline=TRUE, sgp.projections.baseline=TRUE, sgp.projections.lagged.baseline=TRUE, sgp.test.cohort.size=NULL, return.sgp.test.results=FALSE, simulate.sgps=TRUE, save.old.summaries=NULL, save.intermediate.results=TRUE, calculate.simex=NULL, calculate.simex.baseline=NULL, sgp.use.my.coefficient.matrices=NULL, sgp.target.scale.scores=FALSE, sgp.target.scale.scores.only=FALSE, overwrite.existing.data=TRUE, update.old.data.with.new=TRUE, output.updated.data=TRUE, sgPlot.demo.report=TRUE, plot.types=c("bubblePlot", "studentGrowthPlot", "growthAchievementPlot"), outputSGP.output.type=c("LONG_Data", "LONG_FINAL_YEAR_Data", "WIDE_Data", "INSTRUCTOR_Data"), outputSGP.directory="Data", sgp.config=NULL, goodness.of.fit.print=TRUE, parallel.config=NULL, sgp.sqlite=FALSE, SGPt=NULL, sgp.percentiles.equated=NULL, sgp.percentiles.equating.method=NULL, sgp.percentiles.calculate.sgps=TRUE, fix.duplicates=NULL, get.cohort.data.info=FALSE, ...)
what_sgp_object | The SGP object to which the additional data will be added and analyzed. This object must be specified. |
---|---|
with_sgp_data_LONG | The additional data in LONG format to be added to the supplied SGP object. The additional data must be in the same form as the data in the @Data slot. If with_sgp_data_LONG is not supplied, the function with update the sgp_object supplied in 'what_sgp_object' using the embedded coefficient matrices, essentially re-doing the analyses. |
with_sgp_data_INSTRUCTOR_NUMBER | The addition INSTRUCTOR_NUMBER data in LONG format to be added to the supplied SGP object. The additional data must be in the same format as the data in the @Data_Supplementary[['INSTRUCTOR_NUMBER']] slot. Default is NULL, no INSTRUCTOR_NUMBER data is supplied. |
state | The 'state' for the sgp_object. Derived from sgp_object name if not explicitly supplied. |
steps | A vector indicting the steps abcSGP will perform as part of the update. Defaults to all steps: |
years | If only 'what_sgp_object' is supplied, years specifies the years to be run among those in the provided sgp_object. |
content_areas | If only 'what_sgp_object' is supplied, content_areas specifies the content areas to be run among those provided by the coefficient matrices in the sgp_object. Default is to run all analyses associated with the coefficient matrices. |
grades | A vector indicating grades for which to calculate student growth percentiles and/or student growth projections/trajectories.
If missing the function will use the data to infer all the grade progressions for student growth percentile and student growth projections/trajectories analyses. This argument is passed to either |
sgp.percentiles | Boolean variable indicating whether to calculate student growth percentiles (if analyzeSGP is included in the 'steps' argument). Defaults to TRUE. |
sgp.projections | Boolean variable indicating whether to calculate student growth projections (if analyzeSGP is included in the 'steps' argument). Defaults to TRUE. |
sgp.projections.lagged | Boolean variable indicating whether to calculate lagged student growth projections often used for growth to standard analyses (if analyzeSGP is included in the 'steps' argument). Defaults to TRUE. |
sgp.percentiles.baseline | Boolean variable indicating whether to calculate baseline student growth percentiles and/or coefficient matrices (if analyzeSGP is included in the 'steps' argument). Defaults to TRUE. |
sgp.projections.baseline | Boolean variable indicating whether to calculate baseline student growth projections (if analyzeSGP is included in the 'steps' argument). Defaults to TRUE. |
sgp.projections.lagged.baseline | Boolean variable indicating whether to calculate lagged baseline student growth projections (if analyzeSGP is included in the 'steps' argument). Defaults to TRUE. |
sgp.test.cohort.size | Integer indicating the maximum number of students sampled from the full cohort to use in the calculation of student growth percentiles. Intended to be used as a test of the desired analyses to be run. The default, NULL, uses no restrictions (no tests are performed, and analyses use the entire cohort of students). |
return.sgp.test.results | Boolean variable passed to |
simulate.sgps | Boolean variable indicating whether to simulate SGP values for students based on test-specific Conditional Standard Errors of Measurement (CSEM). Test CSEM data must be available for simulation and included in |
save.old.summaries | A Boolean argument (defaults to NULL/TRUE which will save the |
save.intermediate.results | A Boolean argument (defaults to FALSE) indicating whether results should be save to the current directory after each step of the analysis. |
calculate.simex | A character state acronym or list including state/csem variable, csem.data.vnames, csem.loss.hoss, simulation.iterations, lambda and extrapolation method.
Returns both SIMEX adjusted SGP ( |
calculate.simex.baseline | A character state acronym or list including state/csem variable, csem.data.vnames, csem.loss.hoss, simulation.iterations, lambda and extrapolation method. Defaults to NULL, no simex calculations performed.
Alternatively, setting the argument to TRUE uses the same defaults as above along with |
sgp.use.my.coefficient.matrices | A Boolean argument (defaults to FALSE/NULL) passed to |
sgp.target.scale.scores | A Boolean argument (defaults to FALSE/NULL) passed to |
sgp.target.scale.scores.only | A Boolean argument (defaults to FALSE/NULL) passed to |
overwrite.existing.data | A Boolean argument (defaults to TRUE) indicating whether updateSGP should overwrite existing data/results from an earlier run as part of updateSGP. |
update.old.data.with.new | A Boolean argument (defaults to TRUE) indicating whether updateSGP should add new data supplied in argument with_SGP_Data_LONG to existing longitudinal data or reduce data set to run analyses on only that which is provided. |
output.updated.data | A Boolean argument (defaults to TRUE) indicating whether updateSGP should use |
sgPlot.demo.report | A Boolean argument (defaults to TRUE) indicating whether updateSGP should produce just the demo student growth plots or those associated with all students in the last year. |
plot.types | A character vector (defaults to 'c( |
outputSGP.output.type | Specifies the type of output generated as part of intermediate step when adding addition data and using old coefficient matrices. Defaults are the defaults of outputSGP,
|
outputSGP.directory | A a file path indicating where to save output files. Defaults to |
sgp.config | List of analysis control parameters passed to |
goodness.of.fit.print | A Boolean variable passed to |
parallel.config | Parallel computation configuration passed to |
sgp.sqlite | A Boolean argument (defaults to FALSE) indicating whether a SQLite database file of the essential SGP data should be created from the |
SGPt | Argument (defaults to NULL) indicating whether time dependent student growth percentile (SGPt) are calculate. |
sgp.percentiles.equated | Argument (defaults to NULL) passed to |
sgp.percentiles.equating.method | Character vector argument passed to |
sgp.percentiles.calculate.sgps | Boolean argument passed to |
fix.duplicates | Argument to control how |
get.cohort.data.info | Boolean argument passed to |
... | Arguments to be passed to |
Returns and object of class SGP including additional analyses.
prepareSGP
and abcSGP
not_run({ ### Run analyses on all but final year's of data Demonstration_Data_LONG <- subset(sgpData_LONG, YEAR Demonstration_Data_LONG_2013_2014 <- subset(sgpData_LONG, YEAR Demonstration_SGP <- abcSGP( sgp_object=Demonstration_Data_LONG, sgPlot.demo.report=TRUE) ### Run updateSGP on Demonstration_SGP and the 2013_2014 data Demonstration_SGP <- updateSGP( what_sgp_object=Demonstration_SGP, with_sgp_data_LONG=Demonstration_Data_LONG_2013_2014) })#> Error: <text>:4:61: unexpected SPECIAL #> 3: #> 4: Demonstration_Data_LONG <- subset(sgpData_LONG, YEAR <!-- %in% #> ^