MFBoot | R Documentation |
Estimates bootstrap confidence intervals for the mitigated fraction.
MFBoot(
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 |
Estimate highest density intervals? |
bca |
Estimate BCa intervals? |
return.boot |
Save the bootstrap sample of the MF statistic? |
trace.it |
Verbose tracking of the cycles? |
seed |
to initialize random number generator for reproducibility. Passed
to |
Resamples the data and produces bootstrap confidence intervals. Equal tailed intervals are estimated by the percentile method. Highest density intervals are estimated by selecting the shortest of all possible intervals. For BCa intervals, see Efron and Tibshirani section 14.3.
a mfboot data object
MF-package
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.
mfboot
MFBoot(lesion ~ group, calflung, seed = 12345)
# 10000 bootstrap samples
# 95% confidence interval
# Seed = 12345
#
# Comparing vac to con
# observed median lower upper
# Equal Tailed 0.44 0.4496 0.152 0.7088
# Highest Density 0.44 0.4496 0.152 0.7088
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.