Learn R Programming

GCCfactor (version 1.0.1)

get_bw: Get an optimal bandwidth using Bartlett kernel

Description

Automatic bandwidth selection of Andrews (1991) using Bartlett kernel.

Usage

get_bw(y)

Value

A numeric.

Arguments

y

A \(T\times 1\) vector of time series

References

Andrews, D.W., 1991. Heteroskedasticity and autocorrelation consistent covariance matrix estimation. Econometrica: Journal of the Econometric Society, pp.817-858.

Examples

Run this code
panel <- UKhouse # load the data
est_multi <- multilevel(panel, ic = "BIC3", standarise = TRUE, r_max = 5,
                           depvar_header = "dlPrice", i_header = "Region",
                           j_header = "LPA_Type", t_header = "Date")
lT_G <- get_bw(est_multi$G)

Run the code above in your browser using DataLab