Skip to content
Prev 13543 / 20628 Next

nlmer function

When you copy code verbatim from a pdf you copy the formatting, hence the code is unlikely to work.  This, which is lifted verbatim and fixed in a text editor by removing extra spaces in the formatting, and the line breaks, works.

library(lme4)
data(Theph)
Th.start <- c( lKe = -2.5 , lKa = 0.5 , lCl = -3)
nm1 <- nlmer ( conc ~ SSfol ( Dose , Time , lKe , lKa , lCl ) ~ 0+ lKe + lKa + lCl +(0+ lKe | Subject )+(0+ lKa | Subject ) +(0+ lCl | Subject ), nAGQ =0 , Theoph , start = Th.start , verbose = TRUE )
--
Federico Calboli
Ecological Genetics Research Unit
Department of Biosciences
PO Box 65 (Biocenter 3, Viikinkaari 1)
FIN-00014 University of Helsinki
Finland

federico.calboli at helsinki.fi