seCor: Compute the standard error accounting for empirical...

Description Usage Arguments Details Value

View source: R/autocorr.R

Description

Compute the standard error accounting for empirical autocorrelations

Usage

1
2
3
4
5
6
7
8
seCor(
  x,
  effCor = if (missing(effCov)) computeEffectiveAutoCorr(x) else effCov/var(x, na.rm =
    TRUE),
  na.rm = FALSE,
  effCov,
  nEff = computeEffectiveNumObs(x, effCor, na.rm = na.rm)
)

Arguments

x

numeric vector

effCor

numeric vector of effective correlation components first entry at zero lag equals one. See computeEffectiveAutoCorr

na.rm

logical. Should missing values be removed?

effCov

alternative to specifying effCor: numeric vector of effective covariance components first entry is the variance. See computeEffectiveAutoCorr

nEff

possibility to specify precomputed number of effective observations for speedup.

Details

The default uses empirical autocorrelation estimates from the supplied data up to first negative component. For short series of x it is strongly recommended to to provide effCov that was estimated on a longer time series.

Value

numeric scalar of standard error of the mean of x


bgctw/lognorm documentation built on March 17, 2021, 3:21 a.m.