predict_inla_data: Generate prediction from an INLA output object

View source: R/predict_inla.R

predict_inla_dataR Documentation

Generate prediction from an INLA output object

Description

predict_inla_data() generates a prediction vector from an INLA::inla() output object, putting this prediction back into the data frame.

Usage

predict_inla_data(df, model, pred_col, pred_upper_col, pred_lower_col)

Arguments

df

Data frame of model data.

model

INLA model object returned by INLA::inla() which contains summary.fitted.values.

pred_col

Column name to store predicted value.

pred_upper_col

Column name to store upper bound of confidence interval generated by the predict_... function. This stores the full set of generated values for the upper bound.

pred_lower_col

Column name to store lower bound of confidence interval generated by the predict_... function. This stores the full set of generated values for the lower bound.

Value

A data frame.


caldwellst/augury documentation built on Oct. 10, 2024, 8:20 a.m.