Skip to content
Prev 58825 / 398502 Next

cubic spline/smoother with nlme

Suzette,
In addition to Professor Daalgard's suggestions of ns() and bs(), you could
also try out rcs() from Frank Harrell Design package (you may need his Hmisc
package as well). This function helps to fit natural (restricted cubic
splines), and have been very useful for me in practice to use in tandem with
lme() in modeling longitudinal data.

Hope that helps,
Bill