View source: R/descriptive_functions.R
bst | R Documentation |
bst
estimates confidence intervals around the mean
, median
or geo_mean
.
bst(x, stat = "mean", n = 1000, CI = 95, digits = 2)
x |
A numerical variable. Missing observations are removed by default. |
stat |
Statistic, either "mean" (default), "median" or "gmean" (geometric mean). |
n |
Number of replicates for the bootstrap (n=1000 by default). |
CI |
Confidence intervals (CI=95 by default). |
digits |
Number of digits for rounding (default = 2). |
A data frame with the estimate and confidence intervals.
data(IgM, package = "ISwR")
bst(IgM, "median")
bst(IgM, "gmean")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.