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

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -