apply.always.absent.null | R Documentation |
Make predictions of 0 for every location. Does not really warrant a stand-alone function, but done to be parallel to the other functions
apply.always.absent.null( train.data, target.year, n.draws = 1, draw.vec = c("DRAW_0001") )
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. |
out.df A data frame containing the predictions for each location for the target year
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.