SGP (version 0.0-8.0)

prepareSGP: Prepare data for SGP analyses

Description

Utility function/exemplar used to embed supplied long data into a list object as a keyed data.table.

Usage

prepareSGP(long_data)

Arguments

long_data
A panel data set in long form. See embedded sgpData_LONG data set for an exemplar.

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.

See Also

sgpData_LONG

Examples

Run this code
## prepareSGP is Step 1 of 5 of abcSGP
DEMO_Data <- prepareSGP(sgpData_LONG)

Run the code above in your browser using DataCamp Workspace