fit_aarr_model | R Documentation |
fit_aarr_data()
calculates AARR and then generates a prediction based on calculated AARR.
fit_aarr_model(
df,
response,
interpolate,
test_col,
sort_col,
sort_descending,
sort_col_min,
group_col,
group_models,
obs_filter,
pred_col
)
df |
Data frame of model data. |
response |
Column name of prevalence variable to be used to calculate AARR. |
interpolate |
Logical value, whether or not to interpolate values based on
estimated AARR between observations. Defaults to |
test_col |
Name of logical column specifying which response values to remove
for testing the model's predictive accuracy. If |
sort_col |
Column name of column to arrange data by in |
sort_descending |
Logical value on whether the sorted values from |
sort_col_min |
If provided, a numeric value that sets a minimum value needed
to be met in the |
group_col |
Column name(s) of group(s) to use in |
group_models |
Logical, if |
obs_filter |
String value of the form " If `group_models = FALSE`, then `obs_filter` is only used to determine when predicted values replace observed values but **is not** used to restrict values from being used in model fitting. If `group_models = TRUE`, then a model is only fit for a group if they meet the `obs_filter` requirements. This provides speed benefits, particularly when running INLA time series using `predict_inla()`. |
pred_col |
Column name to store predicted value. |
A data frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.