ci | R Documentation |
Designed to be used by boot95ci
to calculate a bootstrap model of an aggregator function given by agg
.
ci(x, indices, agg)
x |
numeric vector |
indices |
numeric vector: Indicies are passed to calculated individual bootstaps of |
agg |
character: A string corresponding to the aggregate or central tendency function to be modeled (eg. |
This is a convenience function internal to NicePlots
and is not exported. The variable agg
should be a string corresponding
an aggregator function such as mean
or median
. The indicies designed to passed from the boot
function
from the package boot
and are used to determine calculated the different bootstrap iterations of the agg
functions on x
.
a number corresponding to a bootstrap iteration of the aggregator function given by agg
boot
, boot95ci
#Calculates the median of Sepal.Length from the iris data set
data(iris)
#ci(iris$Sepal.Length,"median",seq(1,length(iris$Sepal.Length)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.