Spline.fit {npmlda}R Documentation

Polynomial-spline fit with equally-spaced knots

Description

Polynomial-spline fit with equally-spaced knots

Usage

Spline.fit(Xint, Xvec, Yvec, nKnots = 2, Degree = 3, Wt = 1)

Arguments

Xint

a vector of x interval to generate the local linear fit

Xvec, Yvec

numeric vectors of data values, Xvec and Yvec must have the same length.

nKnots

number of equally-spaced knots

Degree

degree of polynomial splines

Wt

a weight vector or a constant. For longitudinal data, Wt=1/N corresponds to measurement uniform weight and Wt=1/(nni) corresponds subject uniform weight.

References

Wu, C.O. and Tian, X. Nonparametric Models for Longitudinal Data. Chapman & Hall/CRC. To appear.


[Package npmlda version 1.0.0 Index]