Skip to contents

update_model() generates additional samples for model RSTr_obj.

Usage

update_model(
  RSTr_obj,
  iterations = 6000,
  show_plots = TRUE,
  verbose = TRUE,
  no_est = FALSE
)

Arguments

RSTr_obj

The RSTr model object to generate samples for.

iterations

Number of iterations to run.

show_plots

If set to FALSE, hides traceplots.

verbose

If set to FALSE, hides progress bar and other messages.

no_est

If set to FALSE, will automatically generate estimates for the model. Set this to TRUE if you plan on manually processing your samples.

Value

An RSTr model object.

Examples

data_min <- lapply(miheart, \(x) x[1:2, 1:3, 1:3])
adj_min <- list(2, 1)
on.exit(unlink(file.path(tempdir(), "test"), recursive = TRUE), add = TRUE)
mod_mst <- mstcar("test", data_min, adj_min, tempdir(), show_plots = FALSE, verbose = FALSE)
mod_mst <- update_model(mod_mst, iterations = 1000, show_plots = FALSE, verbose = FALSE)