Spline.fit: Polynomial-spline fit with equally-spaced knots

Description Usage Arguments References

Description

Polynomial-spline fit with equally-spaced knots

Usage

1
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: With Implementation in R. Chapman & Hall/CRC. 2018.


npmldabook/npmlda documentation built on May 25, 2019, 10:41 p.m.