apply.always.absent.null: Always Absent Null

View source: R/NullModels.R

apply.always.absent.nullR Documentation

Always Absent Null

Description

Make predictions of 0 for every location. Does not really warrant a stand-alone function, but done to be parallel to the other functions

Usage

apply.always.absent.null(
  train.data,
  target.year,
  n.draws = 1,
  draw.vec = c("DRAW_0001")
)

Arguments

train.data

Training data to be used to set up the always absent null. Must have a location field with locations

n.draws

the number of draws per location. n.draws will not change the outcome, as this is deterministic, but it be used to change the structure of the matrix and make the output parallel to that of the other functions.

Value

out.df A data frame containing the predictions for each location for the target year


akeyel/dfmip documentation built on Sept. 3, 2022, 1:26 a.m.