buildTrainingPool: Build a pool of training observations for a grade level

Description Usage Arguments Details Value

View source: R/dataTransform.R

Description

Build a pool of training observations for a grade level

Usage

1
buildTrainingPool(grade, conn)

Arguments

grade

a numeric representing the grade level we are interested in finding training cohorts for

conn

a connection string which contains links to databases necessary to extract the data

Details

This function identifies the number of grade N cohorts which have valid graduation outcomes and then pulls all complete observations from those cohorts using the assembleCohort function. It then stacks all of these cohorts into a single data.frame suitable for transformation and analysis later. At the end it calls cleanTrainingPool to clean up the data and enforce business rules about variable encoding.

Value

a data.frame with all colums generated by assembleCohort and the number of rows equal to the number of students per cohort X the number of cohorts available for a given grade


jknowles/ModelEWS documentation built on May 19, 2019, 11:42 a.m.