Instrumental variables macro and missing values

Welcome to the forum for runmlwin users. Feel free to post your question about runmlwin here. The Centre for Multilevel Modelling take no responsibility for the accuracy of these posts, we are unable to monitor them closely. Do go ahead and post your question and thank you in advance if you find the time to post any answers!

Go to runmlwin: Running MLwiN from within Stata >> http://www.bristol.ac.uk/cmm/software/runmlwin/
Post Reply
Econometric
Posts: 2
Joined: Tue Dec 30, 2014 12:53 am

Instrumental variables macro and missing values

Post 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.
ChrisCharlton
Posts: 1384
Joined: Mon Oct 19, 2009 10:34 am

Re: Instrumental variables macro and missing values

Post 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.
Econometric
Posts: 2
Joined: Tue Dec 30, 2014 12:53 am

Re: Instrumental variables macro and missing values

Post by Econometric »

Thanks, that solved my problem.
Post Reply