如何在glmmtmb中使用伽马家族
我有一个称为“ duration_bout”的变量,该变量对应于几秒钟内的持续时间。以下是分布的样子:
看起来像泊松分布,但我的持续时间是连续的可变。如果我将数据转换为整数,Poisson非常适合:
我认为我在这里真正拥有的是gamma分发,但我不知道如何在GLMMTMB中使用这个家庭!几个问题:
- family = gamma()要求我定义一个“ x”参数;这是什么?
- Poisson模型如何合适?将数据转移到整数以使用它是多么正确?
谢谢!
I have a variable called "duration_bout" which corresponds to a duration in seconds. Here's what the distribution looks like:
It looks like a Poisson distribution, but my durations are a continuous variable. If I transform my data to integers, Poisson fits rather well:
I think what I really have here is rather a gamma distribution, but I can't figure out how to use this family in glmmTMB! Several questions:
- family=gamma() asks me to define an "x" parameter; what is it?
- How come Poisson model fits? How correct is it to tranform my data to integers in order to use it?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论