GLM Poisson with rates into RM

Gui
Gui New Altair Community Member
edited November 5 in Community Q&A
Hi everyone,

I've been trying to build a Poisson model for rates, but I can't find where to define my "offset". In my case, the offset is the population per neighborhood and target "number of deaths".

has anyone ever done this before using only RM operators?  

roughly and unelegant way, something like this

eg.: glm(deaths ~  x1 + x2 + x3 + offset(log(pop_nghb)) , data=mydata, family=poisson(...)) 

to build log(deaths / pop_nghb) = b0 + b1 x1+ b2 x2 + ...


Best,

Best Answer

  • Gui
    Gui New Altair Community Member
    edited August 2022 Answer ✓
    I have already found it

Answers

  • Gui
    Gui New Altair Community Member
    edited August 2022 Answer ✓
    I have already found it