[Limdep Nlogit List] Help me with Matrix command

William Greene wgreene at stern.nyu.edu
Thu Oct 8 07:06:41 EST 2009


Rhythm. B has only one column. So you set KVAR=1. Then,
B(k21:KVAR) is invalid. You should set KVAR=K1+COL(XB).
/B. Greene

----- Original Message -----
From: "rhythm Em" <rhythmem at yahoo.com>
To: limdep at limdep.itls.usyd.edu.au
Sent: Wednesday, October 7, 2009 2:59:39 PM GMT -05:00 Columbia
Subject: [Limdep Nlogit List] Help me with Matrix command

Hi,

I am graduate student of economics. I am trying to compute IMRs in bivarite probit. I am getting problem with Matrix command , every time I get error 399 or 400 and 32. Following is the program how I formulated:

Create ; y1= my dependent variable for eq 1; y2= my dependent variable for eq 2 $
Bivariate; Lhs= y1, y2; rh1= xa; rh2= xb $ (xa and xb are the list of my independent variables for eq. 1 and eq2 respectfully)
Calc ; k1= col(xa); k21=k1+1; kvar= col(b) $
Matrix ; b1 = b(1:k1) ; b2= b(k21: kvar)$ -- here I got problem, output always displays error stating that it generally produced from extracting part of matrix. 

Do I need to put specific values for k1, k21 or so on..if so, where and how we get these values? It may be very general and simple question ...but sometimes, simple things may create difficult situation. Would you please suggest me to get rid of these for smooth run. Please do suggest me if you are familiar with alternative ways to get lamda-values. 

I hope, someone among you can help me in this regard. I really appreciate your help. Thanks.

Regards,
Rhythm


      

_______________________________________________
Limdep site list
Limdep at limdep.itls.usyd.edu.au
http://limdep.itls.usyd.edu.au


More information about the Limdep mailing list