HLBoot | R Documentation |
Estimates bootstrap confidence intervals for MF, HL, and Qdif.
HLBoot(
formula,
data,
compare = c("con", "vac"),
b = 100,
B = 100,
alpha = 0.05,
hpd = TRUE,
bca = FALSE,
return.boot = FALSE,
trace.it = FALSE,
seed = sample(1:1e+05, 1)
)
formula |
Formula of the form |
data |
Data frame |
compare |
Text vector stating the factor levels - |
b |
Number of bootstrap samples to take with each cycle |
B |
Number of cycles, giving the total number of samples = B * b |
alpha |
Complement of the confidence level |
hpd |
Boolean whether to estimate highest density intervals for MF and HL. |
bca |
Boolean whether to estimate BCa intervals for MF. |
return.boot |
Boolean whether to save the bootstrap samples of the statistics. |
trace.it |
Boolean whether to display verbose tracking of the cycles. |
seed |
to initialize random number generator for reproducibility. Passed
to |
Estimates bootstrap confidence intervals for the mitigated fraction (MF), Hodge-Lehmann estimator (HL), and the difference of medians and quartiles (Qdif). Equal tailed intervals are provided for all three, highest density intervals are optionally provided for MF and HL, and BCa intervals are optionally provided for MF. The Hodges-Lehmann estimator is the median difference; it assumes that the two distributions have the same shape and differ by a constant shift. Assumes data is single pool (no nesting).
a mfhlboot-class
data object
MF-package
Hodges JL, Lehmann EL, (1963). Estimates of location based on
rank tests. Annals of Mathematical Statistics. 34:598–611.
Siev D, (2005). An estimator of intervention effect on disease
severity. Journal of Modern Applied Statistical Methods.
4:500–508.
Efron B, Tibshirani RJ. An Introduction to
the Bootstrap. Chapman and Hall, New York, 1993.
mfhlboot-class
HLBoot(lesion~group, calflung, seed = 12345)
# Bootstrapping
# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
# . . . . . . . . . . . . . . . . . . . . . . . .
#
# 10000 bootstrap samples
# 95% confidence intervals
# Comparing vac to con
#
#
# Mitigated Fraction
#
# observed median lower upper
# Equal Tailed 0.44 0.4496 0.152 0.7088
# Highest Density 0.44 0.4496 0.152 0.7088
#
#
# Hodges-Lehmann
#
# observed median lower upper
# Equal Tailed -0.07335 -0.07615 -0.17220 -0.01565000
# Highest Density -0.07335 -0.07615 -0.15635 -0.00850065
#
#
# Quartile Differences (quartiles of vac - quartiles of con)
#
# observed median lower upper
# Q25 -0.041500 -0.041500 -0.10340 -0.000905
# Q50 -0.112525 -0.111175 -0.28115 0.019350
# Q75 -0.168000 -0.170425 -0.38890 0.005300
#
#
# Quartiles of con
# observed median lower upper
# Q25 0.054000 0.054000 0.021005 0.11275
# Q50 0.139275 0.139275 0.061400 0.31000
# Q75 0.315000 0.315000 0.173000 0.44625
#
#
# Quartiles of vac
# observed median lower upper
# Q25 0.01250 0.01250 0.00125 0.026000
# Q50 0.02675 0.02675 0.01665 0.144575
# Q75 0.14700 0.14700 0.02810 0.219250
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.