The following webpage shows how to do Poisson regression.
https://stats.idre.ucla.edu/r/dae/poisson-regression/
summary(m1 <- glm(num_awards ~ prog + math, family="poisson", data=p))
The mean of the Poisson distribution is linked with the linear transform (X
) of the explanatory variable b
(here prog
and math
) via some function f()
.
mu = f(X b)
I would like to have a slightly modification to the relation by multiplying a known constant that is dependent on b
.
mu = c(b) f(X b)
This should be trivial to do if one had code the regression from scratch. But it is non trivial to customize an existing piece of code that was not designed to do so.
I haven't found a R package that can do this. But I'd expect that somebody might have done it before.
Could anybody let me know whether there is a R function that can do this for Poisson regression?