Hello All,
I've run into another problem along the same lines as above. The model works (thanks to Charlie's help) with 'garden' and 'mating system' effects, but when I attempt to replace ‘mating system’ with 'population' effects, I get "cannot compute standard errors" again.
aout3 <- aster(resp ~ varb + fit : (pop*garden), pred=pred, fam=fam, varvar=varb, idvar=id, root=root, data = redata)
There are 6 populations per mating system planted in each garden, and after making a few summaries it's clear that there are several '0's' across the dataset (i.e. gardens/years where there are no members of that population alive and/or flowering). This seems like it would be the culprit, but I'm not sure how to deal with it. Please let me know if you have any tips!
Interestingly, I tried putting population as a random effect using reaster, and the model worked (or at least didn’t return the “cannot compute standard errors” error).
rout <- reaster(resp ~ varb + fit : (garden * ms), list(pop = ~ 0 + fit : pop), pred=pred, fam=fam, varvar=varb, idvar=id, root=root, data = redata)
This type of model (with ‘mating system’ as fixed and ‘population’ as nested/random) is what I originally envisioned, but I’d still like to explore ‘population’ as a fixed effect, so I’d like to get that working if possible. On a side note, is anova(aout, rout) a meaningful way to compare model fit between aster and reaster models?
.RData file and R script attached. Thanks for your time and expertise!
Evan