Fsh.test: Test for Seasonal Heteroskedasticity

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/partsm.R

Description

Test for seasonal heteroskedasticity.

Usage

1
2
    Fsh.test (res, s)
  

Arguments

res

a vector containing the data to be tested.

s

the periodicity of the data.

Details

On the basis of the following model,

x_t^2 = ω_0 + ω_1 D_{1,t} + ... + ω_{S-1} D_{S-1,t} + ε_t,

where S is the periodicity of the data, the null hypothesis of

the null-hypothesis ω_{i}=0, for i=1,...,S-1 is tested.

The F-statistic follows an F((S-1), n-k) distribution, where n is the number of observations and k the number of parameters.

Value

An object of class Ftest.partsm-class containing the F-test statistic, the freedom degrees an the corresponding p-value.

Author(s)

Javier Lopez-de-Lacalle javlacalle@yahoo.es.

See Also

Ftest.partsm-class.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
    ## Fsh test for the residuals of the first differences
    ## of the logarithms of the Real GNP in Germany
    ## on an AR(4) model with seasonal intercepts.
    data("gergnp")
    lgergnp <- log(gergnp, base=exp(1))
    wts <- ts(c(NA, diff(gergnp, lag=1)), frequency=4, start=start(lgergnp))

    detcomp=list(regular=c(0,0,0), seasonal=c(1,0), regvar=0)
    ar4 <- fit.ar.par(wts=lgergnp, type="AR", p=4, detcomp=detcomp)
    out <- Fsh.test(res=residuals(ar4@lm.ar), s=frequency(wts))
  

partsm documentation built on Nov. 25, 2020, 5:07 p.m.