HI list members,
We are new to Stata and are are tad lost with regards to the following
operation we are attempting complete and hoping that someone will be able to
help us please.
In our data set we have a sample of price observations for period 1 and
period 2. We would like to isolate these observations that are identical
between both periods (all observations are coded, therefore identical
observations will have an identical code in each period). Once the identical
ones are determined, we would then proceed with computing their price
ratios. The part that is baffling us is what can we do in Stata in order to
be able to isolate these identical observations from one adjacent period to
the next?
I suspect that this is an embarrassingly easy one. ;-)
Well, that depends. I guess that you mean you want to compare _different_
values for _identical_ objects? So you want to identify equal objects, say
products. If your 'identical code' is numeric, the best way to go would be
a reshape: