Skip to content
Prev 306251 / 398506 Next

nlme function examples for dose-respone

Hi,

thx Bert, I forward the question. I forgot a detail. For each (location,
plot, year) combination there are 6 (dose, response) pairs.

$ plot: Factor w/ 4 levels "1","2","3","4":
$ location : Factor w/ 5 levels "loc1","loc2",..:
$ year: Factor w/ 3 levels "2009","2010",..:
$ dose: num  27.3 32.7 57.2 33 183.1 ...
$ response: num  54.2 64.9 74.3 62 92.2 ...

So I can fit each (location, plot, year) with 6 points and make a bottom
up approach. But I would be glad to have one overall model, like

mod <- nlme(response ~ fun(dose,a,b,c)
             , fixed = list(a ~ 1, b ~ 1, c ~ 1)
             , random = list(a ~ 1, b ~ 1, c ~ 1)
             , groups = ~location
             , data=dat
             , start= ... )

and "location*plot" and "location*year" as random and for each location
one best fitted curve. But unfortunately I did not know how to formulate
this in nlme.

Christof


Am 25-09-2012 18:13, schrieb Bert Gunter: