Hi,

I'm trying to fit nonlinear mixed effects model using nlme function but getting 
an error message. Here is what I have:

fitted_model = nlme(scores~spline(b1,b2,b3,kt,time), 
           fixed = list(b1~1, b2~1, b3~1, kt~1),
           random = b1+b2+b3~1, 
           groups= ~id,
           data = sdat,
           start = c(b1=3.5,b2=2,b3=.60,kt=3.5),verbose=T)


Error:

Error in spline(b1, b2, b3, kt, time) : invalid interpolation method
In addition: Warning message:
In if (is.na(method)) stop("invalid interpolation method") :
  the condition has length > 1 and only the first element will be used

Any help will be highly appreciated

Victor


      
        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to