Skip to contents

Plot predictions from posterior (or prior) simulations Requires as input a summarized simulation data.frame, e.g. obtained using sim_from_draws(post, summarize=TRUE)

Usage

plot_predictions(sim_data, obs = NULL)

Arguments

sim_data

data.frame with simulated predictions

obs

observed data. A data.frame with columns t and dv, e.g. tdm_data <- data.frame(t = c(2.5, 11.5), dv = c(40, 14))