Hi,
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")
but that only sets the first observation to 1 and the rest to 0. I need
all 40 econ cars to have seg = 1 and the 40 prestige cars to have seg =
0. How can I do this?
Thanks,
Walt
________________________
Walter R. Paczkowski, Ph.D.
Data Analytics Corp.
44 Hamilton Lane
Plainsboro, NJ 08536
________________________
(V) 609-936-8999
(F) 609-936-3733
walt(a)dataanalyticscorp.com
www.dataanalyticscorp.com
_____________________________________________________