Thanks. This will work for my current problem. But what if I have a
very large data set and the econ observations are scattered throughout
the data set? This won't work.
Walt
On 3/7/2012 3:54 PM, Allin Cottrell wrote:
On Wed, 7 Mar 2012, Data Analytics Corp. wrote:
> I have car data that I imported from excel. The first column of the
> excel worksheet has a car designation label: econ or prestige. The
> first 40 observations are econ cars and the next 40 are prestige cars.
> In Gretl, the designation appears as a row label. I'd like to subset
> the data to model the econ cars. I tried to create a dummy variable,
> seg, as
>
> seg = (obs == "econ")
Try seg = (obs < 41)
Allin Cottrell