Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Other Topics > Student Life
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-07-2007, 01:01 AM
goofball goofball is offline
Senior Member
 
Join Date: Oct 2003
Location: Who wrote \'help I\'m a bug\' on my letter to grandma?
Posts: 6,463
Default I need help with an iv regression in stat

I'm getting super funky results. Just making sure I have the damn syntax/order right would be awesome. I'll coach you at poker in return!
Reply With Quote
  #2  
Old 05-07-2007, 01:43 AM
lippy lippy is offline
Senior Member
 
Join Date: May 2006
Location: i ain\'t got my taco
Posts: 3,905
Default Re: I need help with an iv regression in stat

I can't help you, but happy birthday. You're a good poster, so cheers.
Reply With Quote
  #3  
Old 05-07-2007, 04:27 AM
edtost edtost is offline
Senior Member
 
Join Date: Feb 2004
Posts: 2,971
Default Re: I need help with an iv regression in stat

ivreg depvar [varlist1] (varlist2 = varlist_iv) [if] [in] [weight] [,options]

http://www.stata.com/help.cgi?ivreg

[ QUOTE ]
ivreg fits a linear regression model using instrumental variables (or two-stage least squares) of depvar on varlist1 and varlist2, using varlist_iv (along with varlist1) as instruments for varlist2.

In the language of two-stage least squares, varlist1 and varlist_iv are the exogenous variables, and varlist2 are the endogenous variables.

[/ QUOTE ]

my understanding is that an example like

ivreg y1 x1 x2 (y2 = z1 z2 z3) x3

is equivilant to

regress y2 z1 z2 z3
predict yhat
regress y1 x1 x2 yhat x3

in other words, that the order of (varlist2 = varlist_iv) in [varlist1] doesn't matter, but my knowledge of stata isn't all that great.
Reply With Quote
  #4  
Old 05-07-2007, 03:16 PM
Jdanz Jdanz is offline
Senior Member
 
Join Date: Nov 2003
Posts: 1,650
Default Re: I need help with an iv regression in stat

[ QUOTE ]
ivreg depvar [varlist1] (varlist2 = varlist_iv) [if] [in] [weight] [,options]

http://www.stata.com/help.cgi?ivreg

[ QUOTE ]
ivreg fits a linear regression model using instrumental variables (or two-stage least squares) of depvar on varlist1 and varlist2, using varlist_iv (along with varlist1) as instruments for varlist2.

In the language of two-stage least squares, varlist1 and varlist_iv are the exogenous variables, and varlist2 are the endogenous variables.

[/ QUOTE ]

my understanding is that an example like

ivreg y1 x1 x2 (y2 = z1 z2 z3) x3

is equivilant to

regress y2 z1 z2 z3
predict yhat
regress y1 x1 x2 yhat x3

in other words, that the order of (varlist2 = varlist_iv) in [varlist1] doesn't matter, but my knowledge of stata isn't all that great.

[/ QUOTE ]

I'm not completely sure this is correct, I'm running some tonight so I'll try to let you know.

edit: I know for a fact the order in which you but your instruments inside the parens doesn't matter at all.

Also not sure how familiar you are with IV, but the results tend to simply be super funky unless you have like perfect instruments or a ridiculously large sample.
Reply With Quote
  #5  
Old 05-07-2007, 04:08 PM
edtost edtost is offline
Senior Member
 
Join Date: Feb 2004
Posts: 2,971
Default Re: I need help with an iv regression in stat

also, ivreg as opposed to reg predict reg should give the same coefficients, but std dev's and other statistics will be completely different.
Reply With Quote
  #6  
Old 05-07-2007, 04:37 PM
Jdanz Jdanz is offline
Senior Member
 
Join Date: Nov 2003
Posts: 1,650
Default Re: I need help with an iv regression in stat

depends on the sample, ivreg will automatically exclude subjects for which there is incomplete data, whereas reg reg will use all the data it can for each individual regression.

I spend a ridiculous number of hours confused by this.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:03 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.