[R] Generic attribute in multinom function

Benjamin Geckle dittogag at yahoo.de
Tue Aug 11 20:11:23 CEST 2009


Hello,
I try estimate a MNL model but I need one coefficient as generic. How 
can I get the same coefficient for all alternatives?



As example

Call:

multinom(formula = choice ~ time + costs, data = DATA)



Coefficients:

   (Intercept)        time             costs

1    4.79            -0.28          -3.97

2   -3.30             0.053         0.59

3    2.10            -0.048        -0.65



But I would like to get the costs parameters as generic attribute, so 
that I have the following result:



Coefficients:

   (Intercept)        time           costs

1    4.79            -0.3            -1.8

2   -3.36             0.4            -1.8

3    2.10            -0.5            -1.8

Thanks.

Best Regards

Benjamin




More information about the R-help mailing list