\Header{predict.bs}{Evaluate a predefined spline basis at new values}
\alias{predict.ns}{predict.bs}
\begin{Usage}
\begin{verbatim}
predict.bs(basis, newx)
predict.ns(basis, newx)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{basis}] the result of a call to \texttt{bs()} or \texttt{ns()}, in
particular, having attributes describing \texttt{knots}, \texttt{degree}
etc.
\item[\texttt{newx}] the \texttt{x} values at which evaluations are required.
\end{ldescription}
\end{Arguments}
\begin{Value}
an object just like \texttt{basis}, except evaluated at the new values
of \texttt{x}.

These are methods for the function \texttt{predict()} for objects
inheriting from classes \texttt{bs} or \texttt{ns}.  See \texttt{predict}
for the general behavior of this function.\end{Value}
\begin{SeeAlso}
\texttt{bs}, \texttt{ns}, \texttt{poly}, \texttt{lo}, \texttt{s}\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
basis <- ns(x, knots=c(3,6), B=c(0,5)) #generate a basis
basis.eval <- predict(basis, newx)
\end{ExampleCode}
\end{Examples}

