Conditional statements when running a regression

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

ecardamone
Posts: 40
Joined: Wed Sep 17, 2014 12:23 pm

Conditional statements when running a regression

Postby ecardamone » Fri Jan 16, 2015 4:46 pm

Hi,

I am trying to run a log-log regression, but a few observations in my RHS variable are negative values. Is there a way to run a conditional regression,
something along the lines: equation eq1.ls log(y) c log(x) for x>0? Or is there an easy way to adjust the sample to exclude the negative values?

Thanks for help!

Emina

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Conditional statements when running a regression

Postby EViews Gareth » Fri Jan 16, 2015 4:48 pm

Set the sample to:
If x>0

ecardamone
Posts: 40
Joined: Wed Sep 17, 2014 12:23 pm

Re: Conditional statements when running a regression

Postby ecardamone » Fri Jan 16, 2015 4:57 pm

Thank you!


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 1 guest