[R-sig-ME] GAMM4 error
bbolker at gmail.com
Tue Aug 15 21:36:19 CEST 2017
We'd love to help, but it's really, really hard without a reproducible
example. All the error message really tells us is that somewhere in the
guts there was something like a divide-by-zero error or an infinity
produced (because your data were weird, or because some value got really
small or really large and under/overflowed).
A reproducible example would be ideal (see e.g.
), but in its absence, `summary(mydata)` or `str(mydata)` would be
useful. For example:
- is y a 0/1 variable?
- are all of your x variables numeric, and not super-large in magnitude?
- do you have NA values in your data?
- how many distinct values (levels) of pupil and neigh do you have?
- how many observations overall?
On 17-08-15 03:07 PM, dani wrote:
> Hello everyone,
> I am a beginner struggling with GAMM4. I employed a GAMM4 model using
> a binomial distribution involving two smoothers and two random
> intercepts (corresponding to a structure involving observations
> cross-classified into two groups: pupils and neighbourhoods):
> model <- gamm4(y ~ x1+x2+s(x3)+s(x4), random=~ (1|pupil)+(1|neigh),
> data=mydata, family= binomial)
> I received the following error message: Error in
> smooth.construct.tp.smooth.spec(object, dk$data, dk$knots) :
> NA/NaN/Inf in foreign function call (arg 1)
> I was wondering if anyone can please help me elucidate what might
> this mean.
> Best regards, everyone! Nicole-Miki
> [[alternative HTML version deleted]]
> R-sig-mixed-models at r-project.org mailing list
More information about the R-sig-mixed-models