[R] Constrained Poisson model / Bayesian Poisson model
mara.pfleiderer at uni-ulm.de
mara.pfleiderer at uni-ulm.de
Fri Jan 22 16:01:58 CET 2016
Hi all,
I am dealing with a problem about my linear Poisson regression model
(link function=identity).
I am using the glm()-function which results in negative coefficients,
but a negative influence of the regressors wouldn't make sense.
(i) Is there a possibility to set constraints on the regression
parameters in glm() such that all coefficients are positive? Or is
there another function in R for which this is possible?
(ii) Is there a Bayesian version of the glm()-function where I can
specify the prior distribution for my regression parameters? (e.g. a
Dirichlet prior s.t. the parameters are positive)
All this with respect to the linear Poisson model...
Thanks in advance!
Best,
Mara
More information about the R-help
mailing list