reset(formula, power = 2:3, type = c("fitted", "regressor",
"princomp"), data = list())
reset
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 determin whether these additional variables have
significant influence. The test statistic under $H_0$ follows an F
distribution with parameter
degrees of freedom.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)
reset(y1 ~ x , power=2, type="regressor")
reset(y2 ~ x , power=2, type="regressor")
Run the code above in your browser using DataLab