RE: [R] formula in fixed-effects part of GLMM

2005-05-02 Thread Liaw, Andy
> From: Douglas Bates > > Henric Nilsson wrote: > > On Mon, 2005-05-02, 17:24, Douglas Bates wrote: > > > > > >>weihong wrote: > >> > >>>Can GLMM take formula derived from another object? > >>> > >>>foo <- glm (OVEN ~ h + h2, poisson, dataset) > >>> > >>># ok > >>>bar <- GLMM (OVEN ~ h + h2, poi

Re: [R] formula in fixed-effects part of GLMM

2005-05-02 Thread Douglas Bates
Henric Nilsson wrote: > On Mon, 2005-05-02, 17:24, Douglas Bates wrote: > > >>weihong wrote: >> >>>Can GLMM take formula derived from another object? >>> >>>foo <- glm (OVEN ~ h + h2, poisson, dataset) >>> >>># ok >>>bar <- GLMM (OVEN ~ h + h2, poisson, dataset, random = list (yr = ~1)) >>> >>>#e

Re: [R] formula in fixed-effects part of GLMM

2005-05-02 Thread Henric Nilsson
On Mon, 2005-05-02, 17:24, Douglas Bates wrote: > weihong wrote: >> Can GLMM take formula derived from another object? >> >> foo <- glm (OVEN ~ h + h2, poisson, dataset) >> >> # ok >> bar <- GLMM (OVEN ~ h + h2, poisson, dataset, random = list (yr = ~1)) >> >> #error >> bar <- GLMM (foo$formula,

Re: [R] formula in fixed-effects part of GLMM

2005-05-02 Thread Douglas Bates
weihong wrote: > Can GLMM take formula derived from another object? > > foo <- glm (OVEN ~ h + h2, poisson, dataset) > > # ok > bar <- GLMM (OVEN ~ h + h2, poisson, dataset, random = list (yr = ~1)) > > #error > bar <- GLMM (foo$formula, poisson, dataset, random = list (yr = ~1)) > #Error in foo