GLM Poisson with rates into RM
Gui
New Altair Community Member
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,
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,
Tagged:
0
Best Answer
-
I have already found it0
Answers
-
I have already found it0