Learn R Programming

desk (version 1.1.2)

reset.test: RESET Method for Non-linear Functional Form

Description

Ramsey's RESET for non-linear functional form. The object of test results returned by this command can be plotted using the plot() function.

Usage

reset.test(
  mod,
  data = list(),
  m = 2,
  sig.level = 0.05,
  details = FALSE,
  hyp = TRUE
)

Value

A list object including:

hypcharacter matrix of hypotheses (if hyp = TRUE).
resultsa data frame of basic test results.
SSR0SSR of the H0-model.
SSR1SSR of the extended model.
Lnumbers of parameters tested in H0.
nulldistnull distribution of the test.

Arguments

mod

estimated linear model object or formula.

data

if mod is a formula then the corresponding data frame has to be specified.

m

the number of non-linear terms of fitted y values that should be included in the extended model. Default is m = 2, i.e. to add \(\widehat{y}^2\) and \(\widehat{y}^3\).

sig.level

significance level. Default value: sig.level = 0.05.

details

logical value indicating whether specific details about the test should be returned.

hyp

logical value indicating whether the Hypotheses should be returned.

References

Ramsey, J.B. (1969): Tests for Specification Error in Classical Linear Least Squares Regression Analysis. Journal of the Royal Statistical Society, Series B 31, 350-371.

See Also

resettest.

Examples

Run this code
## Numerical illustration 14.2. of the textbook
X <- reset.test(milk ~ feed, m = 4, data = data.milk)
X

## Plot the test result
plot(X)

Run the code above in your browser using DataLab