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 pclass
coefficient > 0
or sex coefficient sex ~ n(0.5,0.5)
.
Comments
Post a Comment