resettest(formula, power = 2:3, type = c("fitted", "regressor",
"princomp"), data = list())
"lm"
object).resettest
is called from."htest"
containing:
Z
is generated by taking powers either of the fitted response, the
regressor variables, or the first principal component of X
. A standard
F-Test is then applied to determine whether these additional variables have
significant influence. The test statistic under $H_0$ follows an F
distribution with parameter
degrees of freedom.This function was called reset
in previous versions of the package. Please
use resettest
instead.
Examples can not only be found on this page, but also on the help pages of the
data sets bondyield
, currencysubstitution
,
growthofmoney
, moneydemand
,
unemployment
, wages
.
W. Kr�mer & H. Sonnberger (1986), The Linear Regression Model under Test. Heidelberg: Physica
lm
x <- c(1:30)
y1 <- 1 + x + x^2 + rnorm(30)
y2 <- 1 + x + rnorm(30)
resettest(y1 ~ x , power=2, type="regressor")
resettest(y2 ~ x , power=2, type="regressor")
Run the code above in your browser using DataLab