binning - Manually Weight a Binned Variable in R Logistic Regression -
i looking credit scoring using logistic regression in r , stumped on this...
if have categorical variable "residence" factors "own", "rent" , "other" , want set weight of "other" 0 neutral in model best way in glm in r?
we can manually using fico model builder i'm not sure how in r.
thanks.
if want omit cases residence=="other" use subset argument glm()
.
logmod <- glm(binaryvar ~ covar1 + residence, data=dat, subset= residence =="other", family="binomial")
Comments
Post a Comment