Hello,
I'm a mathematics student at Ulm University and currently I am working
on my bachelor thesis about a Poisson regression model.
For this, I am using the function glm () in R which is working very well.
But still I have two questions to improve my model and I hope that you
could help me:
(i) Is there a possibility to set constraints on the regression
parameters in glm() or is there another function in R?
Specifically, my paramters should be constrained to be positive as
negative parameters wouldn't make sense. How can I do this in R
(preferably with glm() or similar functions)?
(ii) Is there a Bayesian version of the glm()-function where I can
specify the prior distribution for my regression parameters?
Thanks in advance!
Kind regards,
Mara Pfleiderer
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.