Learn R Programming

mrIML (version 2.2.0)

mrBootstrap: Bootstrap mrIML model predictions

Description

This function bootstraps model predictions and generates variable profiles for each response variable.

Usage

mrBootstrap(mrIMLobj, num_bootstrap = 10, downsample = FALSE)

Value

A list containing bootstrap samples of variable profiles for each response variable.

Arguments

mrIMLobj

A list object output by mrIMLpredicts().

num_bootstrap

The number of bootstrap samples to generate (default: 10).

downsample

Logical. Should the bootstrap samples be downsampled? (default: FALSE).

Examples

Run this code
if (FALSE) { # identical(Sys.getenv("NOT_CRAN"), "true")
# Specify a random forest tidy model
mrIML_rf <- mrIML::mrIML_bird_parasites_RF

#future::plan(multisession, workers = 4)

mrIML_bootstrap <- mrIML_rf %>%
  mrBootstrap(
    num_bootstrap = 50
  )
}

Run the code above in your browser using DataLab