Skip to contents

Function to calculate and format posterior prediction distributions from INLA via posterior sampling

Usage

get_inla_pi_sample(inla_post_sample, quantile_levels, id_df)

Arguments

inla_post_sample

samples for one predictor (often output of inla.posterior.sample.eval)

quantile_levels

quantiles that you want to estimate interval at

id_df

a one row dataframe containing the id variables and true_value for that observation