Page 1 of 1

Conditional statements when running a regression

Posted: Fri Jan 16, 2015 4:46 pm
by ecardamone
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

Re: Conditional statements when running a regression

Posted: Fri Jan 16, 2015 4:48 pm
by EViews Gareth
Set the sample to:
If x>0

Re: Conditional statements when running a regression

Posted: Fri Jan 16, 2015 4:57 pm
by ecardamone
Thank you!