[R-sig-ME] (no subject)

Nicholas Lewin-Koh nikko at hailmail.net
Wed Jun 2 20:25:54 CEST 2010


Hi Maarten,
I don't know how you are getting a plotting error from fitting a model?
But I suspect what you left out is that you did something like:
> M1<-gamm(call~s(signal variable), random=list(fanimal=~1), data=mydata,family=binomial)
> plot(M1)

and what you wanted is
> plot(M1$gam)

But with out more info that is the best I can do.

Nicholas



> ------------------------------
> 
> Message: 4
> Date: Wed, 02 Jun 2010 10:58:04 +0200
> From: Maarten de Groot <Maarten.deGroot at nib.si>
> To: r-sig-mixed-models at r-project.org
> Subject: [R-sig-ME] gamm
> Message-ID: <4C061D1C.1080608 at nib.si>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Dear list,
> 
> I would like to relate probability of responding animals to a signal 
> variable. because the relationship is not linear, I used gam with 
> binomial distribution. Till here there was no problem. However, the 
> animals were used repeatedly for different values of the signal 
> variable, I included the animal as a random factor (N = 26). Furthermore 
> I have missing values, because some animals died during the process. 
> When running the following model: M1<-gamm(call~s(signal variable), 
> random=list(fanimal=~1), data=mydata,family=binomial), I encountered the 
> following message:
> 
> Error in plot.window(...) : need finite 'xlim' values
> In addition: Warning messages:
> 1: In min(x) : no non-missing arguments to min; returning Inf
> 2: In max(x) : no non-missing arguments to max; returning -Inf
> 3: In min(x) : no non-missing arguments to min; returning Inf
> 4: In max(x) : no non-missing arguments to max; returning -Inf
> 
> Can someone help what went wrong and give some advise on letting the 
> model run correctly.
> 
> Kind regards,
> 
> Maarten de Groot
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> R-sig-mixed-models mailing list
> R-sig-mixed-models at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
> 
> 
> End of R-sig-mixed-models Digest, Vol 42, Issue 3
> *************************************************
>




More information about the R-sig-mixed-models mailing list