apply.mean.value.null | R Documentation |
Mean Value Null
apply.mean.value.null( train.data, target.year, n.draws = 1, draw.vec = c("DRAW_0001") )
train.data |
Training data to be used to calculate the mean values. Must have a location field with locations, and a count field with number of cases. |
target.year |
The year for the prediction. Included in the output data frame to indicate the target year, but otherwise unused |
n.draws |
The number of probabilistic draws to include in the data matrix. Retained here only for consistency in formatting with the probabilistic methods. |
draw.vec |
A vector of column names for the probabilistic draws. |
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.