powered by
bst estimates confidence intervals around the mean, median or geo_mean.
bst
bst(x, stat = "mean", n = 1000, CI = 95, digits = 2)
A numerical variable. Missing observations are removed by default.
Statistic, either "mean" (default), "median" or "gmean" (geometric mean).
Number of replicates for the bootstrap (n=1000 by default).
Confidence intervals (CI=95 by default).
Number of digits for rounding (default = 2).
A data frame with the estimate and confidence intervals.
# NOT RUN { data(IgM, package = "ISwR") bst(IgM, "median") bst(IgM, "gmean") # }
Run the code above in your browser using DataLab