Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bp2

LM test for serial correlation


Description

LM test for serial correlation

Usage

bp2(object, nlags, fill = NULL, type = c("F", "Chi2"))

Arguments

object

fitted lm model

nlags

positive integer number of lags

fill

starting values for the lagged residuals in the auxiliary regression. By default 0.

type

Fisher or Chisquare statistics

Examples

reg<-nardl(food~inf,fod,ic="aic",maxlag = 4,graph = TRUE,case=3)
lm2<-bp2(reg$fits,reg$nl,fill=0,type="F")

nardl

Nonlinear Cointegrating Autoregressive Distributed Lag Model

v0.1.6
GPL-3
Authors
Taha Zaghdoudi
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.