0

I want to use R mfp function for Poisson model with offset function. However, when I compared the result with the glm function. It seems the offset function didn't work in the mfp function.

For example, I tried both glm and mfp without using offset function and they provided the same results.

glm(y ~ x, data=cohort, family = poisson)
mfp(y ~ x, data=cohort, family = poisson)

However, when I used offset function, glm and mfp did not give the same result and actually the mfp function generated the same result as before (i.e. without offset function)

glm(y ~ x + offset(ln_t), data=cohort, family = poisson)
mfp(y ~ x + offset(ln_t), data=cohort, family = poisson)

Does anyone have any ideas?

akrun
  • 874,273
  • 37
  • 540
  • 662

0 Answers0