summary.outference: Summarize from an '"outference"' object

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/outference.R

Description

This function produces a summary from an "outference" object, with a similar fasion as summary.lm.

Usage

1
2
3
4
5
6
## S3 method for class 'outference'
summary(object, ...)

## S3 method for class 'summary.outference'
print(x, digits = max(3, getOption("digits") -
  3), signif.stars = getOption("show.signif.stars"), ...)

Arguments

object,

an object of class "outference".

...,

other arguments.

x,

an object of class "summary.outference".

digits,

the number of significant digits to use when printing.

signif.stars,

should the 'significance starts' be printed?

Details

This function is written in a similar fasion as summary.lm. Users can get access to the "summary.lm" objects through $summary.full and $summary.rm.

Value

This function returns an object of class "summary.outference", which is a list containing the following components:

call,

the function call.

summary.full,

an object of class "summary.lm", representing the summary from the fit using the full data.

summary.rm,

an object of class "summary.lm", representing the summary from the fit after outlier removal.

method,

the method used for outlier detection.

cutoff,

the cutoff of the method.

outlier.det,

indexes of detected outliers.

magnitude,

a measure of "outlying-ness". For "cook" and "dffits", this is the vector of the Cook's distance or DFFITS for all observations; for "lasso", this is the vector of "outlying coefficients" estimated by lasso.

sigma,

the noise level used in the fit.

coefficients,

a data frame summarizing the estimates, standard errors, values of the test statistics and corrected p-values of regression coefficients.

truncation.coef,

a list of the truncation sets of the test statistics for each regression coefficient.

chisqstatistic, fstatistic,

a list containing the value, the degree(s) of freedom, the truncation set, and the corrected p-value for testing the global null.

Author(s)

Shuxiao Chen <[email protected]>

See Also

outference for model fitting;

coef.outference for extracting coefficients;

confint.outference for confidence intervals of regression coefficients;

plot.outference for plotting the outlying measure;

predict.outference for making predictions.

Examples

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)
summary(fit)          # extract the corrected p-values after outlier removal

shuxiaoc/outference documentation built on Dec. 5, 2017, 3:48 a.m.