Skip to contents

Thin pass-through to simpleboot::two.boot for the common two-sample bootstrap-of-a-statistic case (e.g. difference of means, ratio of medians). Returns a boot object the user can hand to boot::boot.ci or morie_boot_basic_ci().

Usage

morie_simpleboot_two(x, y, statistic = mean, R = 1000L, ...)

Arguments

x, y

Numeric vectors.

statistic

A scalar function applied to one sample at a time (e.g. mean, median); two.boot's contract.

R

Number of bootstrap replicates (default 1000).

...

Forwarded to simpleboot::two.boot.

Value

A boot object.