Ramsey's RESET test for nonlinearity¶
Source: man/performRESETTest.Rd ยท Help: ?performRESETTest
Adds powers of the fitted values and performs an F-test to check for neglected nonlinearity.
Usage¶
Arguments¶
model- A fitted
lmmodel. data- optional data frame the model was fitted to. When
NULL, the default, the model frame ofmodelis used. The statistic is computed from the response, fitted values and model matrix ofmodel, sodatadoes not change the result; it is accepted so that every test takes(model, data, ...). Before 0.15.0 the second argument waspower: a number passed there by position is still read aspowerin 0.15.x, with a warning that shows the new call, and stops working in 1.0.0. power- Numeric vector of powers to include.
Value¶
An object of class htest.
Details¶
On a fit with weights the augmented model is fitted by weighted least squares and both residual sums of squares are weighted. Releases before 0.12.0 refitted the augmented model without the weights, so the two models were not nested.