[R] ?

From: Tetyana Stepanchuk <stepanchuk_at_wiwi.uni-frankfurt.de>
Date: Fri 19 Aug 2005 - 03:47:32 EST


I have a small problem with developing design matrix X, which I use in estimation the log-likelihood of a multinomial logit model.  

I have the data:

 number of observation - 289

number of choice alternative- 3

number of choice specific variables in matrix X -4

matrix X =289x4

I tried to use the function createX, I know that I have to get design matrix 289x12 (am I right?) but it always says "bad dim" (my code and data in attachment)  

Where is my fault? Can I use another method in order to create design matrix?

Or need it at all here in logmnl (see code in attachment)?  

Can anyone help me with this issue?  

Thanks in advance,


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Fri Aug 19 03:52:17 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:31:26 EST