pb2gen: Compare two independent groups using percentile bootstrap

View source: R/stats.R

pb2genR Documentation

Compare two independent groups using percentile bootstrap

Description

Compute a bootstrap confidence interval for the the difference between any two parameters corresponding to independent groups. By default, the Harrell-Davis estimates of the median are compared.

Usage

pb2gen(x, y, alpha = 0.05, nboot = 2000, est = hd, ...)

Arguments

x, y

Two vectors of continuous variables.

alpha

Alpha level - default = 0.05, which means that a 95 interval is computed.

nboot

Number of bootstrap samples - default = 2000.

Value

A list with variables: est.1 est.2, est.diff ci, p.value, sq.se, n1, n2

Note

Adaptation of pb2gen from Rallfun-v33.txt. See https://github.com/nicebread/WRS/

See Also

hd


GRousselet/rogme documentation built on Nov. 12, 2022, 4:38 a.m.