Skip to contents

Thin pass-through that adapts an rmorie-style statistic(data) -> scalar callable to boot::boot's statistic(data, indices) -> scalar signature and returns the raw boot object. Useful when the caller wants to use boot's downstream helpers (boot::boot.ci, boot::tilt.boot, boot::jack.after.boot) directly.

Usage

morie_boot_run(data, statistic, R = 2000L, strata = NULL, ...)

Arguments

data

A numeric vector, matrix, or data.frame.

statistic

Function f(data) -> scalar.

R

Number of bootstrap replicates.

strata

Optional integer stratification vector.

...

Forwarded to boot::boot.

Value

A boot object as returned by boot::boot.