\HeaderA{getKnots}{Spline-knots for plw and lmw}{getKnots}
\keyword{univar}{getKnots}
\keyword{manip}{getKnots}
\begin{Description}\relax
Computes a set of nKnots interior knots( if possible) plus 2 boundary knots so that:

1) the nOut smallest and highest data points (in x) lies below and above the lower and upper boundary knots respectively.

2) there is at least nIn data points between all knots.
\end{Description}
\begin{Usage}
\begin{verbatim}
getKnots(x,nKnots=10,nOut=2000,nIn=4000)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] Data vector
\item[\code{nKnots}] Number of interior knots
\item[\code{nOut}] Number of data points below and above the lower and upper boundary knots respectively.
\item[\code{nIn}] Number of data points between knots.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
See the definition (R-code) for details.
\end{Details}
\begin{Value}
A vector of knots.
\end{Value}
\begin{Author}\relax
Magnus \eqn{\mbox{\AA}}{A}strand
\end{Author}
\begin{SeeAlso}\relax
plw, lmw, estimateSigmaMVbeta
\end{SeeAlso}

