Description Usage Arguments Details Value Author(s) See Also Examples
This function gives predictions as well as confidence intervals for the regression surfaces
and the prediction intervals from an "outference"
object. The syntax is the same
as predict.lm
.
1 2 3 
object 
an object of class 
newdata, 
an optional data frame in which to look for variables with which to predict. If
omitted, the fitted values are used. WARNING: making predictions for many new data points with

interval, 
type of interval calculation. If set to 
level, 
confidence level, default to 0.95. 
alpha.tilde, 
an extra parameter between 
..., 
other arguments. 
If alpha.tilde = NULL
, then this function iterates over
alpha.tilde in seq(0, 1level, length.out = 100)[c(5, 25, 50, 75, 95)]
and returns
the results with the shortest prediction intervals.
This function gives a vector of predictions or a matrix of predictions and intervals
with column names fit, lwr, upr
if interval
is set.
Shuxiao Chen <[email protected]>
outference
for model fitting;
summary.outference
for summaries;
coef.outference
for extracting coefficients;
confint.outference
for confidence intervals of regression coefficients;
plot.outference
for plotting the outlying measure;
1 2 3 4 5 6 7 8 9  ## 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)
## predictions at the first two observations
predict(fit, newdata = stackloss[1:2, ], interval = "none")
predict(fit, newdata = stackloss[1:2, ], interval = "confidence")
predict(fit, newdata = stackloss[1:2, ], interval = "prediction")

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.