Description Usage Arguments References
Polynomial-spline fit with equally-spaced knots
1 | Spline.fit(Xint, Xvec, Yvec, nKnots = 2, Degree = 3, Wt = 1)
|
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. |
Wu, C.O. and Tian, X. Nonparametric Models for Longitudinal Data. Chapman & Hall/CRC. To appear.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.