ar1_to_gm: Transform AR1 to GM

Description Usage Arguments Details Value Author(s) Examples

View source: R/RcppExports.R

Description

Takes AR1 values and transforms them to GM

Usage

1
ar1_to_gm(theta, freq)

Arguments

theta

A vec that contains AR1 values.

freq

A double indicating the frequency of the data.

Details

The function takes a vector of AR1 values phi and sigma ^2 and transforms them to GM values beta and sigma ^2[gm] using the formulas: beta = -ln(phi)/delta_t sigma^2[gm] = sigma^2/(1-phi^2)

Value

A vec containing GM values.

Author(s)

JJB

Examples

1
ar1_to_gm(c(0.3,1,0.6,.3), 2)

SMAC-Group/gmwm documentation built on Sept. 11, 2021, 10:06 a.m.