td_timevarying: Likelihood ratio test on time varying trading days

View source: R/tests_td.R

td_timevaryingR Documentation

Likelihood ratio test on time varying trading days

Description

Likelihood ratio test on time varying trading days

Usage

td_timevarying(s, groups = c(1, 2, 3, 4, 5, 6, 0), contrasts = FALSE)

Arguments

s

The tested time series

groups

The groups of days used to generate the regression variables.

contrasts

The covariance matrix of the multivariate random walk model used for the time-varying coefficients are related to the contrasts if TRUE, on the actual number of days (all the days are driven by the same variance) if FALSE.

Value

A Chi2 test

Examples

s <- log(ABS$X0.2.20.10.M)
td_timevarying(s)

palatej/rjd3toolkit documentation built on Oct. 30, 2024, 10:46 p.m.