Documentation for gratia::posterior_samples()
behaviour with offsets
#231
-
Hi Gavin, Really appreciate the work in this package - hoping to move our code to using it as much as possible. Would it be possible to document (or happy to raise a PR if it's explained here) how I'm unclear on whether the offset is ignored, or whether the offset is used to convert back to, for example, counts, before sampling from the error distribution? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Thanks for the question @jonathonmellor. What happens will depend on how you include the offset term in the model. This is because, as mentioned in
If you included the offset through the formula, Basically, |
Beta Was this translation helpful? Give feedback.
I believe this is now implemented via dd93df2. Would you mind checking that it works as per your expectations - it seemed to do the right thing on the example here but I haven't tested it widely.