Hello. I have a panel data with 337 cross sections and 256 time series. One of the things that I'm trying to do is to run regressions for some specific cross-sections. I tried with:
if id=1 then
equation eq1.ls liq c sap
endif
but nothing happened. I'm not clear about the way if statement works, and I would like get some insight from you. I have a doub also about the wat the ifs can be combined (for example if id=1 and year=2009). Thanks.
using if for regression
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: using if for regression
You need to use the smpl command to set the sample to be used for the equation.
Who is online
Users browsing this forum: No registered users and 2 guests
