getKnots: Spline-knots for plw and lmw

Description Usage Arguments Details Value Author(s) See Also

View source: R/PLWandLMW.R

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

1
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


plw documentation built on May 31, 2017, 11:43 a.m.