nw: Bandwidth Selection

Description Usage Arguments Value References

Description

This function at fixk 0 finds the bandwidth, or lag length, of the short, long, and run variance of a residual.

Usage

1
nw(v,fixk)

Arguments

v

A cector of error terms from a factor model

fixk

If fixk is 0, then this function will perform automatic bandwidth selection. Otherwise, the integer placed here will be the selected bandwidth.

Value

k An integer that is the bandwidth chosen by nw()

w The vector of long run variance

References

Moon, R. & B. Perron (2004) Testing for a unit root in panels with dynamic factors. Journal of Econometrics 122, 81-126.


PANICr documentation built on May 2, 2019, 4:40 a.m.