Create counterfactual data of variables from INLA model
create_counterfactual_inla.Rd
Create counterfactual data of variables from INLA model
Arguments
- cv_set
list object containing analysis and assessment data.frames
- y_var
string name of column of observed values
- pred_vars
vector string of predictor variables to use in model
- reff_var
string or formula for random effects
- id_vars
names of columns used as keys/ids in data.frames
- hyper_priors
priors for spatial and temporal random effects
- W_orgUnit
graph of orgUnit to use in spatial structure. If NULL (default), will not fit a spatial structure.
- var_scales
data.frame of center and scale factors used in variable scaling
- constant_org
orgUnit to use in counterfactual plots
- constant_date
date to use in counterfactual plots