create synthetic timeseries based on a timeseries. Useful for null hypothesis testing

createSyntheticTimeseries(
  time,
  values,
  n.ens = 1,
  sameTrend = TRUE,
  index.to.model = NA
)

Arguments

time

LiPD "variable list" or vector of year/age values

values

LiPD "variable list" or vector of values

n.ens

Number of ensemble members to simulate

sameTrend

should the synthetic data have the same first-order trend as the original? (default = TRUE)

index.to.model

an optional index of values to model (default = NA, the whole series)

Value

a vector or matrix of synthetic values