The R Project SVN R

Rev

Rev 61160 | Rev 68948 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61160 Rev 61433
Line 9... Line 9...
9
\alias{SafePrediction}
9
\alias{SafePrediction}
10
\title{Utility Function for Safe Prediction}
10
\title{Utility Function for Safe Prediction}
11
\description{
11
\description{
12
  A utility to help \code{\link{model.frame.default}} create the right
12
  A utility to help \code{\link{model.frame.default}} create the right
13
  matrices when predicting from models with terms like \code{poly} or
13
  matrices when predicting from models with terms like \code{poly} or
14
  \code{ns}. 
14
  \code{ns}.
15
}
15
}
16
\usage{
16
\usage{
17
makepredictcall(var, call)
17
makepredictcall(var, call)
18
}
18
}
19
\arguments{
19
\arguments{
Line 42... Line 42...
42
  the terms.
42
  the terms.
43
}
43
}
44
\seealso{
44
\seealso{
45
  \code{\link{model.frame}}, \code{\link{poly}}, \code{\link{scale}};
45
  \code{\link{model.frame}}, \code{\link{poly}}, \code{\link{scale}};
46
  \code{\link{bs}} and \code{\link{ns}} in package \pkg{splines}.
46
  \code{\link{bs}} and \code{\link{ns}} in package \pkg{splines}.
47
  
47
 
48
  \code{\link{cars}} for an example of prediction from a polynomial fit.
48
  \code{\link{cars}} for an example of prediction from a polynomial fit.
49
}
49
}
50
\examples{
50
\examples{
51
require(graphics)
51
require(graphics)
52
 
52