choice - Constrained multinomial logistic regression in R using mlogit -


i add constraints multinomial logistic regression model using mlogit in r. example negative values during coefficient estimation. apparently model doesn't have such capabilities. wondering if there way add constraints or boundaries mlogit or other packages can used multinomial logistic regression.

here code:

proc_mdc3 <- function(x){  fm <- mformula(decision ~  term_f1yc + term_f2yc + eff_rate2 + term_special2 + peak -1  ) fit <- mlogit(fm, x) out2<-fit$coefficients return( out2) }  coeff4<-data.frame(do.call("rbind", by(mdc3, mdc3$seg, proc_mdc3))) 

i want negative values eff_rate2 coefficients code gives me both negative , positive values.

i appreciate in advance.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -