Page 1 of 1

Instrumental variables macro and missing values

Posted: Tue Dec 30, 2014 1:03 am
by Econometric
Hello,

I am trying to make use of the .ado developed in this topic http://www.cmm.bris.ac.uk/forum/viewtop ... 752&p=1787 , but I have found a problem: My instruments have missing values, so Stata gives me the following error: "estimates repost: matrix has missing values". I was wondering if this is a problem of the .ado or this macro does not work in MLwiN with instrumental variables with missings.

Thanks.

Re: Instrumental variables macro and missing values

Posted: Fri Jan 02, 2015 5:43 pm
by ChrisCharlton
As far as I recall there is no special handling of missing values in the .ado file. MLwiN will ignore any rows containing missing values that are sent to it, however the matrix manipulations in the Stata side will be performed using Stata's standard functions. If you listwise delete any variables used in the model prior to calling the command then it should be able to run without generating errors.

Re: Instrumental variables macro and missing values

Posted: Mon Jan 05, 2015 10:15 pm
by Econometric
Thanks, that solved my problem.