This function generates simulations for new data using the fitted conformal model.

# S3 method for class 'conformalize'
simulate(
  object,
  newdata,
  method = c("kde", "surrogate", "bootstrap"),
  n_sim = 250L,
  seed = NULL,
  ...
)

Arguments

object

A object of class conformalize.

newdata

A data frame or matrix of new data for prediction.

method

The method to use for prediction intervals. Options are "split" or "simulation".

n_sim

The number of simulations to perform if using the "simulation" method. Default is 1000.

seed

An optional seed for reproducibility.

...

Additional arguments to pass to the predict function.

Value

A matrix with predictions and prediction intervals.