View source: R/bootstrap_indicator.R
bootstrap_indicator | R Documentation |
This function takes in a dataframe of multi-species data that have been scaled and adds confidence intervals to the indicator value.
bootstrap_indicator(
Data,
iterations = 10000,
CI_limits = c(0.025, 0.975),
verbose = TRUE
)
Data |
A matrix where each named column give the species' values for each year in rows. |
iterations |
The number of bootstrap iterations to use. |
CI_limits |
The confidence limits to return as a vector of two numbers. This default to c(0.025, 0.975) the 95 percent conficence intervals. |
verbose |
If |
A matrix. In each row we have the year, the species and the scaled value. There is also an additional column, 'geomean' giving the geometric mean for each year.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.