Dear all, I am using R version 3.1.3. I want to run this model: m1<-glmer(hours~soil*volatile+(1|replicate), data=data, family=Gamma(link = "inv")) But I got this: Erreur within make.link(link) : 'inv' link not recognised What to do in this case? THANK YOU for help! Xavier PhD candidate Biology UNINE, Switzerlnad
> On Mar 17, 2016, at 1:47 PM, CHIRIBOGA Xavier <xavier.chiriboga at unine.ch> wrote: > > Dear all, > > > I am using R version 3.1.3. I want to run this model: > > m1<-glmer(hours~soil*volatile+(1|replicate), data=data, family=Gamma(link = "inv")) > > > But I got this: > > Erreur within make.link(link) : 'inv' link not recognised > > > What to do in this case?Have you tried omitting an argument to Gamma? The default is "inverse" and "inv" may not be matching "inverse". -- David Winsemius Alameda, CA, USA
On 18/03/16 09:47, CHIRIBOGA Xavier wrote:> Dear all, > > > I am using R version 3.1.3. I want to run this model: > > m1<-glmer(hours~soil*volatile+(1|replicate), data=data, family=Gamma(link = "inv")) > > > But I got this: > > Erreur within make.link(link) : 'inv' link not recognised > > > What to do in this case?What to do? Use the correct syntax! Your call should be: family=Gamma(link="inverse") The name of the link must be specified *completely*; partial matching is not used, for fairly obvious reasons. Actually you could just do "family=Gamma" since "inverse" is the *default* link. cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276