Three-level growth using Instrumental Variable

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/
drddtorres
Posts: 27
Joined: Thu May 30, 2013 7:19 pm

Re: Three-level growth using Instrumental Variable

Post by drddtorres »

Got it. Thanks so much.
Diego
drddtorres
Posts: 27
Joined: Thu May 30, 2013 7:19 pm

Re: Three-level growth using Instrumental Variable

Post by drddtorres »

Chris,

One more question: Can I get first-stage results from either your .ado code or the ivmlwin macro? I want to report my F statistic and make sure the instrument(s) chosen is(are) good. Maybe there's a postestimation command in runmlwin that will give me what I need.

Diego
GeorgeLeckie
Site Admin
Posts: 432
Joined: Fri Apr 01, 2011 2:14 pm

Re: Three-level growth using Instrumental Variable

Post by GeorgeLeckie »

Hi Diego,

I don't think that is implemented currently.

However, the first stage estimates will simply be the same as ones you would obtain in a standard IV analysis using the -regress- command.

I am guessing that the F statistic relates to testing whether the instrument(s) have sufficient explanatory power

I suppose a potential problem that you will run into here is that the first stage regression has ignored the dependency in the data and so your F statistic will have spurious precision?

Best wishes

George
luisaco69
Posts: 1
Joined: Fri Aug 09, 2013 2:46 pm

Re: Three-level growth using Instrumental Variable

Post by luisaco69 »

Dear George,

I am trying to use two instruments x1w and x2w for the endogenous variable yw.

The response variable say y depends on the endogenous variable yw and other two regressors x1 and x2 (not instrumented)

If I give the command

iv cons x1w x2w x1 x2: runmlwin y cons yw x1 x2, level1(l1id: cons) ...

It will give the error "Variable lists do not match". The stata iv.ado file accepts only one instrument per instrumented variable whereas I understood that the original mlwin file was accepting more than one instrument.

Finally, is it correct to list in the variable set after iv also the non instrumented controls x1 and x2?

Thanks
ChrisCharlton
Posts: 1384
Joined: Mon Oct 19, 2009 10:34 am

Re: Three-level growth using Instrumental Variable

Post by ChrisCharlton »

The iv.ado file is a direct translation of the MLwiN macro, which as far as I could see only allowed a one-to-one correspondence between the variables. If you are aware of a way of setting up more than one instrument per instrumental variable in the original MLwiN macro I would be interested in seeing how this is done and could try to adapt the Stata ado version to match. The ado version is entirely in human-readable form, so anyone is of course free to make adaptations themselves.

Yes, it is correct to include the non-instrumented variables after iv. The length of variable list after iv must match the number of predictors after the runmlwin command, and the corresponding positions determine which variables are matched to each other.
Post Reply