Description Usage Arguments Value Author(s) See Also Examples
This function does a two-sided selective test for a single regression coefficient
(test whether it is zero or not) from an "outference"
object.
1 | coeftest(object, index)
|
object, |
an object of class |
index, |
the index of parameter under consideration. The intercept is labelled as |
If sigma
is known or estimated, then this function returns a list with the following
components:
Z, |
the value of the Z-statistic. |
sd, |
the standard error of the regression coefficient. |
truncation, |
the truncation set for the Z-statistic. |
pval, |
the corrected p-value. |
If sigma = NULL
, then this function returns a list with the following components:
truncation, |
the truncation set for the F-statistic. |
pval, |
the corrected p-value. |
Shuxiao Chen <sc2667@cornell.edu>
grptest
for testing group structures 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)
coeftest(fit, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.