combineSGP: Combine student data and SGP results
Description
Utility function/exemplar used to merge student long data with results from studentGrowthPercentiles and/or studentGrowthProjections calculations. Default values of this
function are designed to be used following use of other utility functions: prepareSGP
and analyzeSGP
.Usage
combineSGP(sgp_object=sgp_object,
years=years,
content_areas=content_areas,
sgp.percentiles=sgp.percentiles,
sgp.projections.lagged=sgp.projections.lagged,
state=state)
Arguments
sgp_object
A list containing both Student
(from prepareSGP
) and SGP
(from analyzeSGP
) slots.
years
A vector indicating what years are being analyzed.
content_areas
A vector indicating what content areas are being analyzed.
sgp.percentiles
A boolean variable indicating whether to combine student growth percentiles.
sgp.projections.lagged
A boolean variable indicating whether to combine lagged projections and calculate catch-up/keep-up values.
state
Acronym for which state is to be used for the lagged projections and growth to standard analyses.
Value
- Function returns a list containing the input long data set in the
Student
slot as a data.table keyed using VALID_CASE
, CONTENT_AREA
,
YEAR
, ID
merged with student growth percentiles and/or lagged projection targets and catch up/keep up status.
Examples
Run this code## combineSGP is Step 3 of 5
DEMO_Data <- prepareSGP(sgpData_LONG)
DEMO_Data <- analyzeSGP(DEMO_Data)
DEMO_Data <- combineSGP(DEMO_Data)
Run the code above in your browser using DataLab