Skip to content

error: 'Calloc' could not allocate memory

1 message · Thierry Onkelinx

#
Dear Diego,

Please keep the mailing list in cc.

You can turn off HTML posting in the settings of your mail editor.

The problem with your model is that the random slope with a factor requires
a variance-covariance matrix with the same dimension as the number of
levels of the factor. In your case this requires 3079 parameters, just for
the random effects. You would need observations for most of the species -
year combination which you clearly don't have.

So you model is too complex given the data.

Here a a few solutions.
1) use a nested random effect of species within year: ~1|YearFound/Species
2) use a nested random effect of year within species: ~1|Species/YearFound
3) use crossed random effects using lme4
lmer(Lat ~ Killed + (1 | Species) + (1| YearFound))

Another option would be to model the probability of getting killed by
latitude.

glmer(Killed ~ Lat + (1 | Species) + (1| YearFound), family = binomial)

Best regards,

ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium

To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey

2016-09-13 10:08 GMT+02:00 Diego Pavon <diego.pavonjordan at gmail.com>: