Create an ensemble from an uncertainty and AR1 estimate

generateEnsembleFromUncertainty(
  variable,
  n.ens,
  sd,
  ar = sqrt(0.5),
  arima.order = c(1, 0, 0)
)

Arguments

variable

LiPD variable object or vector of data

n.ens

Number of ensemble members to create (default = 1000)

sd

Standard deviation of the uncertainty to simulate

ar

Autocorrelation coefficient to use for modelling uncertainty, what fraction of the uncertainties are autocorrelated? (default = sqrt(0.5); or 50 percent autocorrelated uncertainty)

arima.order

Order to use for ARIMA model used in modelling uncertainty (default = c(1,0,0))

Value

a matrix of ensemble values