Skip to contents

This function takes in a dataframe of multi-species data that have been scaled and adds confidence intervals to the indicator value.

Usage

bootstrap_indicator(
  Data,
  iterations = 10000,
  CI_limits = c(0.025, 0.975),
  verbose = TRUE
)

Arguments

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 TRUE then progress is printed to screen.

Value

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.