getKnots {plw} | R Documentation

## Spline-knots for plw and lmw

### Description

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.

### Usage

    getKnots(x,nKnots=10,nOut=2000,nIn=4000)

### Arguments

`x` | Data vector
`nKnots` | Number of interior knots
`nOut` | Number of data points below and above the lower and upper boundary knots respectively.
`nIn` | Number of data points between knots.

### Details

See the definition (R-code) for details.

### Value

A vector of knots.

### Author(s)

Magnus Astrand

### See Also

plw, lmw, estimateSigmaMVbeta

[Package plw version 1.4.0 Index]