r - Parameter fixing (priors) for bayes glm -


i need perform glm model don't know how insert coefficient contraints, example coefficient values > 0 or obtaining coefficient keeps concret distribution. there r package done?

code example:

logit1 <- glm(survived ~ pclass+sex+age+sibsp+parch+fare+embarked,        data = traindata,       family = binomial(link = "logit")       ) 

i need pclasscoefficient > 0or sex coefficient sex ~ n(0.5,0.5).


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -