bootstrap_trend: parameteric bootstrap the correlation coefficient under both...

Description Usage Arguments Value See Also Examples

Description

parameteric bootstrap the correlation coefficient under both hypotheses

Usage

1
  bootstrap_trend(X, indicator, ..., reps = 100)

Arguments

X

data sampling time and sampled value as columns. If only one column is provided, assumes that the time is uniform

indicator

a function that returns the warning indicator over time, the correlation of the resulting series with time is returned parameter

...

additional arguments to warningtrend

reps

number of replicate simulations to use.

Value

data.frame with a column indicating the model used (null or test) and a column with the requested correlation coefficient, see cor.test

See Also

warningtrend

Examples

1
2
data(ibm)
bootstrap_trend(ibm_critical, window_var, method="pearson", rep=10)

cboettig/earlywarning documentation built on May 13, 2019, 2:07 p.m.