Skip to contents

After simulate_from_model has been called, this function can be used to load one or more of the saved Draws object(s) (along with RNG information). If multiple indices are provided, these will be combined into a new single Draws object. If simulation object is available, it is easier to use the function draws to load it.

Usage

load_draws(dir, model_name, index, more_info = FALSE, simulator.files = NULL)

Arguments

dir

the directory passed to generate_model)

model_name

the Model object's name attribute

index

a vector of positive integers.

more_info

if TRUE, then returns additional information such as state of RNG after calling generate_model

simulator.files

if NULL, then getOption("simulator.files") will be used.