predictAF: Predict AF

Description Usage Arguments Value

View source: R/predict-AF.R

Description

generate predictions from models with regard to AF giving.

Usage

1
2
predictAF(models, source, buildsource = T, currentyear,
  yeartype = "fiscal", pidms = NA)

Arguments

models

a list of models to predict from. Probably built with buildAFmodels().

source

a hallp-like source of data to do predictions from. Valid options include database tables and csvs.

buildsource

should the prediction data be built from source. If F, source is passed directly to train() without being processed by buildAFpredictors().

currentyear

an integer describing the current year.

yeartype

a character string describing the type of currentyear, either 'fiscal' or 'calendar'.

pidms

a vector of pidms to do predictions on. If left NA, predictAF() will build predictions for everyone in source.

Value

a data frame of pidms and one variable for each model used.


crazybilly/mumodels documentation built on May 14, 2019, 11:31 a.m.