reset.test | R Documentation |
Ramsey's RESET for non-linear functional form. The object of test results returned by this command can be plotted using the plot()
function.
reset.test(
mod,
data = list(),
m = 2,
sig.level = 0.05,
details = FALSE,
hyp = TRUE
)
mod |
estimated linear model object or formula. |
data |
if |
m |
the number of non-linear terms of fitted y values that should be included in the extended model. Default is |
sig.level |
significance level. Default value: |
details |
logical value indicating whether specific details about the test should be returned. |
hyp |
logical value indicating whether the Hypotheses should be returned. |
A list object including:
hyp | character matrix of hypotheses (if hyp = TRUE ). |
results | a data frame of basic test results. |
SSR0 | SSR of the H0-model. |
SSR1 | SSR of the extended model. |
L | numbers of parameters tested in H0. |
nulldist | null distribution of the test. |
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.
resettest
.
## Numerical illustration 14.2. of the textbook
X <- reset.test(milk ~ feed, m = 4, data = data.milk)
X
## Plot the test result
plot(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.