Skip to content

using phia with glmmTMB

3 messages · Joseph Ciarrochi, Bert Gunter, Jeff Newmiller

#
Hi folks,

I love the Phia package andwant to use it with glmmTMB, but when i try to
use the interactionMeans command, i get the below error

modelrepeatedmain2 <- glmmTMB(counts ~
 cluster*nominated*nominator*junior_senior+Ltime+
                              (1|school)+(1|id),
                             data=d_shortf,
                           family=nbinom1)

interactionMeans(modelrepeatedmain2)

Error in array(x, c(length(x), 1L), if (!is.null(names(x))) list(names(x),
 :
  'data' must be of a vector type, was 'NULL'


I can get this to work with GLMER of course, but I love the speed of
glmmTMB.

Is there any way to get interactionMeans to work with glmmTMB?

best
Joseph
#
Dunno ...

But you might do better posting this on the r-sig-mixed-models list where
it both should fit better and where you are more likely to find the
relevant expertise.

Cheers,
Bert



Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )

On Thu, Sep 14, 2017 at 2:26 PM, Joseph Ciarrochi <ciarrochij at gmail.com>
wrote:

  
  
#
Should also make the example reproducible [1][2][3] when you do post there because some mismatch between the model and the data is frequently where the problem turns out to be, and without an example that triggers the problem it is very tough to figure that out. 

[1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

[2] http://adv-r.had.co.nz/Reproducibility.html

[3] https://cran.r-project.org/web/packages/reprex/index.html (read the vignette)