View RSS Feed

olivija18

Stata help

Rate this Entry
by , 07-13-2010 at 08:23 PM (278 Views)
Hello all Stata-Kings/Queens,

I am trying to merge two datasets, but they don't have a unique ID.
My dataset looks like this

ctry year commodity prod
Argentina 1996 Broccoli 300
Argentina 1996 Cabbage 200
Argentina 1997 Broccoli 100
Brazil 1996 Broccoli 100

I have 14 years of data, 89 countries and 47 products (all vertically listed in the dataset)

I would like to replace missing values in the above dataset coming from few other datasets.

How can I create a unique ID that will be the same in all datasets.
For, example ID=1 in all datasets by group (ctry, year, commodity)

Thank you all so much!!!!

Submit "Stata help" to Digg Submit "Stata help" to del.icio.us Submit "Stata help" to StumbleUpon Submit "Stata help" to Google

Comments


SEO by vBSEO ©2010, Crawlability, Inc.