bp {AFR} | R Documentation |
Breusch-Pagan test is used to test against heteroskedasticity of a time-series
bp(model, varformula = NULL, studentize = TRUE, data = list())
model |
is a (generalized)linear regression model |
varformula |
a formula describing only the potential explanatory variables for the variance (no dependent variable needed). By default the same explanatory variables are taken as in the main regression model. |
studentize |
logical. If set to TRUE Koenker's studentized version of the test statistic will be used. |
data |
an optional data frame containing the variables in the model |
Torsten, H., Zeileis, A., Farebrother, Richard W., Cummins, C., Millo, G., Mitchell, D., lmtest package Wang, B., 2014, bstats package
model <- lm(real_gdp ~ imp + exp + poil + eurkzt + tonia_rate, data = macroKZ)
bp(model)