\Header{predict.bs}{Evaluate a Spline Basis}
\alias{predict.ns}{predict.bs}
\keyword{smooth}{predict.bs}
\begin{Description}\relax
Evaluate a predefined spline basis at given values.\end{Description}
\begin{Usage}
\begin{verbatim}
predict(object, newx, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] the result of a call to \code{\Link{bs}} or
\code{\Link{ns}} having attributes describing \code{knots},
\code{degree}, etc.
\item[\code{newx}] the \code{x} values at which evaluations are required.
\item[\code{...}] Optional additional arguments.  Presently no additional
arguments are used.
\end{ldescription}
\end{Arguments}
\begin{Value}
An object just like \code{object}, except evaluated at the new values
of \code{x}.

These are methods for the generic function \code{\Link{predict}} for
objects inheriting from classes \code{"bs"} or \code{"ns"}.  See
\code{\Link{predict}} for the general behavior of this function.\end{Value}
\begin{SeeAlso}\relax
\code{\Link{bs}}, \code{\Link{ns}}, \code{\Link{poly}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(women)
basis <- ns(women$height, df = 5)
newX <- seq(58, 72, len = 51)
# evaluate the basis at the new data
predict(basis, newX)
\end{ExampleCode}
\end{Examples}

