Description Usage Arguments Value Author(s) See Also Examples
This function does a selective test for group structures
(test whether the regression coefficients indexed by g
is all zero or not)
from an "outference"
object.
1 |
object, |
an object of class |
group, |
a vector indicating which group to test. The intercept is labelled as |
This function returns a list with the following components:
statistic, |
the value of the chi-squared statistic or F-statistic,
depending on whether |
df, |
the degree(s) of freedom. |
truncation, |
the truncation set for the statistic. |
pval, |
the corrected p-value. |
Shuxiao Chen <sc2667@cornell.edu>
coeftest
for testing for a single regression coefficient
from an "outference"
object.
1 2 3 4 5 6 | ## Brownlee’s Stack Loss Plant Data
data("stackloss")
## fit the model
## detect outlier using Cook's distance with cutoff = 4
fit <- outference(stack.loss ~ ., data = stackloss, method = "cook", cutoff = 4)
grptest(fit, 2:4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.