powered by
Godfrey-Quandt test is used to test against heteroskedasticity of a time-series
gq( model, point = 0.5, fraction = 0, alternative = c("greater", "two.sided", "less"), order.by = NULL, data = list() )
is a (generalized)linear regression model
numerical. If point is smaller than 1 it is interpreted as percentages of data
numerical. The number of central observations to be omitted.
a character string specifying the alternative hypothesis.
Either a vector z or a formula with a single explanatory variable like ~ z
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) gq(model)
Run the code above in your browser using DataLab