Closed ndrubins closed 7 years ago
These seem reasonable.
glmmTMB
packageFollow-ups to r-sig-mixed-models@r-project.org
please ....
== @Article{ murtaugh_simplicity_2007, title = {Simplicity and Complexity in Ecological Data Analysis}, volume = {88}, url = {http://www.esajournals.org/doi/abs/10.1890/0012-9658%282007%2988%5B56%3ASACIED%5D2.0.CO%3B2} , number = {1}, journal = {Ecology}, author = {Murtaugh, Paul A}, year = {2007}, pages = {56--62} }
Thanks a lot
On Sat, Oct 21, 2017 at 5:07 PM, Ben Bolker notifications@github.com wrote:
Closed #9 https://github.com/bbolker/glmmadmb/issues/9.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bbolker/glmmadmb/issues/9#event-1304350547, or mute the thread https://github.com/notifications/unsubscribe-auth/ABGsHilK7aceXaztAjWoFPXBJxTj7XPsks5suodbgaJpZM4QBv7n .
Hi,
I have count data of gene expression (measured by microscopy: number of gene molecules per cell, collected from many cells), from three groups (e.g., conditions). In each group the gene counts come from several different animals, and in all I have about 10% of the cells having counts of zero, where the total number of cells per group is balanced at ~800. Two of the groups have two animals and the third has three. Within the first group the #cells per animal is not balanced (~250 and ~550), but within the other two groups the numbers are pretty balanced.
Here's a histogram of the data:
And here's a boxplot:
What I want is to estimate the effect of group on the gene counts. For this I thought that a zero-inflated poisson mixed-effects model would be appropriate. I followed the owls example and tried out the
glmmadmb
model:glmmadmb(gene.count ~ group + offset(log.n.cells) + (1|mouse.id), data=df, zeroInflation=TRUE, family="poisson")
wherelog.n.cells
is the log of the number of cells collected per each group. This model crashes with this error:When I remove the
offset
term from the model:glmmadmb(gene.count ~ group + (1|mouse.id), data=df, zeroInflation=TRUE, family="poisson")
it doesn't crash, however looking at the summary:the effects of groups B and C, relative to A, are weak and not significant. But looking at the histogram, at least I, got the feeling they are significant.
I also tried fitting the
zipme
model (from here):zipme(cformula = gene.count ~ group + offset(log.n.cells) + (1|mouse.id),zformula=z ~ 1,data=df,maxitr=20,tol=1e-6)
It converges in 7 iterations and the
cfit
is:While the effects have no errors or p-values, their estimates seem pretty comparable to that of the
glmmadmb
fit without theoffset
term.So my questions are:
Thanks a lot