Perform Park test for heteroscedasticity¶
Source: man/performParkTest.Rd ยท Help: ?performParkTest
Regresses the log of squared residuals on the log of a suspected variable.
Usage¶
Arguments¶
model- an object of class
lm. data- data frame used to fit
model. WhenNULL, the default, the model frame ofmodelis used, sovariablemust then be a variable of the model. The model frame holds the terms of the model rather than its variables (log(x)rather thanx), so a model that transforms a variable needsdata, as does a model with anoffset()term. variable- name of the suspected explanatory variable.
Value¶
An object of class htest containing the t statistic, p-value and degrees of freedom.
Details¶
The slope coefficient from \(\log(e^2)\) regressed on \(\log x\) is tested for zero using a t statistic. A significant coefficient indicates scale depending on \(x\).
References¶
Park, R. E. (1966). Estimation with heteroscedastic error terms. Econometrica, 34(4), 888. doi:10.2307/1910108