See gam() and gamm() in the mgcv package. Cheers, Bert
Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." H. Gilbert Welch On Mon, Apr 21, 2014 at 3:25 PM, John Sorkin <jsor...@grecc.umaryland.edu> wrote: > Colleagues, > Is there any R program that will allow me to run a localized regression (e.g. > smoothing spline) in the context of a random effects model? I have data on > the growth of animals and want to create growth curves. I am not certain what > shape the growth curve would take, so I would like to start with some sort of > smoothed (but not "linear") regression to determine the shape of the growth > curves. I would like to use a random effects model because I have multiple > pairs of observations (age and weight) for each animal. If the shape of the > growth curves appear to fit some parametric distribution, I will switch to a > parametric model. > Thank you, > John > John David Sorkin M.D., Ph.D. > Professor of Medicine > Chief, Biostatistics and Informatics > University of Maryland School of Medicine Division of Gerontology and > Geriatric Medicine > Baltimore VA Medical Center > 10 North Greene Street > GRECC (BT/18/GR) > Baltimore, MD 21201-1524 > (Phone) 410-605-7119 > (Fax) 410-605-7913 (Please call phone number above prior to faxing) > > Confidentiality Statement: > This email message, including any attachments, is for ...{{dropped:14}} ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.