Learn R Programming

plw (version 1.30.0)

getKnots: 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.

Value

A vector of knots.

Details

See the definition (R-code) for details.

See Also

plw, lmw, estimateSigmaMVbeta