[R] using phia with glmmTMB

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Fri Sep 15 06:45:57 CEST 2017


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) 
-- 
Sent from my phone. Please excuse my brevity.

On September 14, 2017 3:45:38 PM PDT, Bert Gunter <bgunter.4567 at gmail.com> wrote:
>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:
>
>> 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
>>
>>         [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/
>> posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list