Two stage least squares instrumental variables

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

Eoghan
Posts: 11
Joined: Sun Mar 19, 2017 7:23 am

Two stage least squares instrumental variables

Postby Eoghan » Mon May 08, 2017 5:09 pm

I have a set of data for each state
I'm supposed to categorize: The data is from 1977-1999
VIO = violent crimes

Test the hypothesis that people in the SOUTH changed their behavior as reflected in violent crimes LOG(VIO) but only AFTER 1985 to other states
SOUTH = MD, VA, WV, NC, SC, GA, FL, KY, TN, Alabama, MISS, LA, Arkansas, and TX
AFTER = 1986 to end of data 1999

How would I specify only south states and only after 1985???

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Two stage least squares instrumental variables

Postby startz » Mon May 08, 2017 6:20 pm

Something like

smpl 1986 @last if state="MD" or state="VA etc.
(There may be a nicer way to do the if part)

But I have a suspicion you've misunderstood the homework.

Eoghan
Posts: 11
Joined: Sun Mar 19, 2017 7:23 am

Re: Two stage least squares instrumental variables

Postby Eoghan » Mon May 08, 2017 6:44 pm

no I haven't misunderstood the HW.

The question says to only include data from those states and 1985 <

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Two stage least squares instrumental variables

Postby startz » Mon May 08, 2017 6:48 pm

Well, you've read the homework and I haven't! I guess I was confused by what it means to say people "changed" their behavior. Anyhow, the smpl statement should work.

Eoghan
Posts: 11
Joined: Sun Mar 19, 2017 7:23 am

Re: Two stage least squares instrumental variables

Postby Eoghan » Mon May 08, 2017 7:58 pm

hey, I pm'd you a question, thank you for the above help!

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Two stage least squares instrumental variables

Postby startz » Mon May 08, 2017 8:16 pm

Please post your question here, so everyone can chime in.

Eoghan
Posts: 11
Joined: Sun Mar 19, 2017 7:23 am

Re: Two stage least squares instrumental variables

Postby Eoghan » Mon May 08, 2017 8:31 pm

The questions the professor wrote is:directions tend to be confusing

Do the instrumental variable analysis a stage at a time and also using EViews TSLS procedure
My variables are
LOG(VIO)
c
CONCEAL
INCARC_RATE
DENSITY
AVGINC
POP
PB1064
PM1029

LOG(ROB) is the variable you xhat
rob1_hat = log(rob)


How to write stages equations
Stage 1, ls x c z, fit xhat
Stage 2, ls y c xhat
Z is for all the instruments.

and then what would be my equation and instrumental variables to run TSLS?

How do I set it up using my variables?
I'm supposed to get the same coefficients in the stages and the TSLS way of testing but different std errors

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Two stage least squares instrumental variables

Postby startz » Mon May 08, 2017 8:57 pm

tsls y c x @ c z


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 71 guests