This is the same problem outlined in
this post here. I followed the second solution as I agree that it is better for my data.
Like many of you, I am a biologist, but perhaps unlike many of you, I am terrible at R. I am steadily learning, but just as a warning, my R coding may baffle some of you. (on that note, if you have any helpful tips for me, I always appreciate learning something new)
In JSG's solution above, they provide an ifelse() code to create a 'between level' variable. My variables are frt_set (whether a flower has matured into a fruit or not) and seedv (a seed count of all viable seeds). The between variable in my case, then, would be seed_set, which is only equal to 1 when frt_set ==1. I'm not sure how this allows for us to now use zero-truncated poisson, because there are still 0's in seedv. So in line 74 of my code, I add seedv+1.
However, as I follow through with the Aster protocol, I still get the error output: Error in mloglhelper(parm, pred, fam, x, root, modmat, origin, deriv = 0, :
invalid data: family = 3, x = 1.000000, xpred = 0.000000
Note that x and xpred are switched in my error output than in the thread linked above.
Am I still doing something wrong?