\HeaderA{place.knots}{Automatically place a set of knots evenly through covariate values}{place.knots}
\keyword{models}{place.knots}
\keyword{smooth}{place.knots}
\keyword{regression}{place.knots}
\begin{Description}\relax
Given a univariate array of covariate values, places a set of knots for a regression spline evenly through the 
covariate values.
\end{Description}
\begin{Usage}
\begin{verbatim} place.knots(x,nk)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] array of covariate values (need not be sorted).
\item[\code{nk}] integer indicating the required number of knots.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Places knots evenly throughout a set of covariates. For example, if you had 11 covariate values and wanted 6 knots 
then a knot would be placed at the first (sorted) covariate value and every second (sorted) value thereafter. With 
less convenient numbers of data and knots the knots are placed within intervals between data in order to achieve 
even coverage, where even means having approximately the same number of data between each pair of knots.
\end{Details}
\begin{Value}
An array of knot locations.
\end{Value}
\begin{Author}\relax
Simon N. Wood \email{simon.wood@r-project.org}
\end{Author}
\begin{References}\relax
\url{http://www.maths.bath.ac.uk/~sw283/}
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{smooth.construct.cc.smooth.spec}{smooth.construct.cc.smooth.spec}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
x<-runif(30)
place.knots(x,7)
rm(x)
\end{ExampleCode}
\end{Examples}

