gatherData.pred: Convert a dataset without a dependent variable

Description Usage Arguments Details Note

View source: R/dataTransform.R

Description

Convert a dataset without a dependent variable

Usage

1
gatherData.pred(grade, conn, year, na.omit = TRUE, ...)

Arguments

grade

a numeric representing the grade level to extract data for

conn

a connection object suitable for extracting data

year

a character representing the school year to predict for in YYYY-YYYY format

na.omit

logical, should rows with an NA be omitted, default is TRUE

Details

First the function extracts data from buildTrainingPool, then it builds a model matrix suitable for passing to a transformation and then prediction step. The key difference between this and the original gatherData is that there are no valide dependent variable observations for data we want to make predictions on. This function is modified to account for that.

Note

na.omit must be true for now as no imputation routines have been integrated


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