| Line 1... |
Line 1... |
| 1 |
% File src/library/stats/man/predict.lm.Rd
|
1 |
% File src/library/stats/man/predict.lm.Rd
|
| 2 |
% Part of the R package, http://www.R-project.org
|
2 |
% Part of the R package, http://www.R-project.org
|
| 3 |
% Copyright 1995-2012 R Core Team
|
3 |
% Copyright 1995-2013 R Core Team
|
| 4 |
% Distributed under GPL 2 or later
|
4 |
% Distributed under GPL 2 or later
|
| 5 |
|
5 |
|
| 6 |
\name{predict.lm}
|
6 |
\name{predict.lm}
|
| 7 |
\title{Predict method for Linear Model Fits}
|
7 |
\title{Predict method for Linear Model Fits}
|
| 8 |
\alias{predict.lm}
|
8 |
\alias{predict.lm}
|
| Line 78... |
Line 78... |
| 78 |
default is to assume constant prediction variance, with a warning.
|
78 |
default is to assume constant prediction variance, with a warning.
|
| 79 |
}
|
79 |
}
|
| 80 |
\value{
|
80 |
\value{
|
| 81 |
\code{predict.lm} produces a vector of predictions or a matrix of
|
81 |
\code{predict.lm} produces a vector of predictions or a matrix of
|
| 82 |
predictions and bounds with column names \code{fit}, \code{lwr}, and
|
82 |
predictions and bounds with column names \code{fit}, \code{lwr}, and
|
| 83 |
\code{upr} if \code{interval} is set. If \code{se.fit} is
|
83 |
\code{upr} if \code{interval} is set. For \code{type = "terms"} this
|
| - |
|
84 |
is a matrix with a column per term and may have an attribute
|
| - |
|
85 |
\code{"constant"}.
|
| - |
|
86 |
|
| - |
|
87 |
If \code{se.fit} is
|
| 84 |
\code{TRUE}, a list with the following components is returned:
|
88 |
\code{TRUE}, a list with the following components is returned:
|
| 85 |
\item{fit}{vector or matrix as above}
|
89 |
\item{fit}{vector or matrix as above}
|
| 86 |
\item{se.fit}{standard error of predicted means}
|
90 |
\item{se.fit}{standard error of predicted means}
|
| 87 |
\item{residual.scale}{residual standard deviations}
|
91 |
\item{residual.scale}{residual standard deviations}
|
| 88 |
\item{df}{degrees of freedom for residual}
|
92 |
\item{df}{degrees of freedom for residual}
|