GetRho: Characteristic time / auto-correlation for irregular time...

View source: R/GetRho.R

GetRhoR Documentation

Characteristic time / auto-correlation for irregular time series

Description

Estimates characteristic time τ or auto-correlation ρ from a gappy time series dataset. It works first by estimating the mean and standard deviation directly from the time series X, using these to standardize the time series, and then optimizes for the likelihood of the value of τ or ρ.

Usage

GetRho(x, t, tau = TRUE)

Arguments

x

vector of time series values.

t

vector of times of measurements associated with x.

tau

whether or not to estimate time scale τ (preferred) or autocorrelation ρ.

Value

Returns a vector of length two: the estimate and the negative log-likelihood

Author(s)

Eliezer Gurarie


bcpa documentation built on May 30, 2022, 5:07 p.m.