I have a data set that looks like this:
ariable name type format label variable label
-----------------------------------------------------------------------------------------------------------------
globalcountry~w long %8.0g globalcountryaveragenew
Global Country Average
argentinanew long %8.0g argentinanew
Argentina
australianew long %8.0g australianew
Australia
belgiumnew long %8.0g belgiumnew
Belgium
brazilnew long %8.0g brazilnew
Brazil
canadanew long %8.0g canadanew
Canada
chilenew long %8.0g chilenew Chile
colombianew long %8.0g colombianew
Colombia
francenew long %8.0g francenew
France
germanynew long %8.0g germanynew
Germany
greatbritainnew long %8.0g greatbritainnew
Great Britain
hungarynew long %8.0g hungarynew
Hungary
indianew long %8.0g indianew India
indonesianew long %8.0g indonesianew
Indonesia
italynew long %8.0g italynew Italy
japannew long %8.0g japannew Japan
malaysianew long %8.0g malaysianew
Malaysia
mexiconew long %8.0g mexiconew
Mexico
netherlandsnew long %8.0g netherlandsnew
Netherlands
newzealandnew long %8.0g newzealandnew
New Zealand
perunew long %8.0g perunew Peru
polandnew long %8.0g polandnew
Poland
singaporenew long %8.0g singaporenew
Singapore
southafricanew long %8.0g southafricanew
South Africa
southkoreanew long %8.0g southkoreanew
South Korea
spainnew long %8.0g spainnew Spain
swedennew long %8.0g swedennew
Sweden
thailandnew long %8.0g thailandnew
Thailand
turkeynew long %8.0g turkeynew
Turkey
unitedstatesnew long %8.0g unitedstatesnew
United States
question str28 %28s
I typed:
reshape long globalcountrynew argentinanew australianew belgiumnew brazilnew canadanew chilenew colombianew fra
> ncenew germanynew greatbritainnew hungarynew indianew indonesianew italynew japannew malaysianew mexiconew neth
> erlandsnew newzealandnew perunew polandnew singaporenew southafricanew southkoreanew spainnew swedennew thailan
> dnew turkeynew unitedstatesnew, i(question) j(question)
variable question already exists
Data are already long
I am doing something wrong, but I can't figure out what is the issue (the country names are variable names and the values in 4 rows beneath them). The variable question is at the end and is a string with an- abbreviated name for the values in the 4 rows) Any help would .be appreciated.
Thanks, Ric Uslaner
ariable name type format label variable label
-----------------------------------------------------------------------------------------------------------------
globalcountry~w long %8.0g globalcountryaveragenew
Global Country Average
argentinanew long %8.0g argentinanew
Argentina
australianew long %8.0g australianew
Australia
belgiumnew long %8.0g belgiumnew
Belgium
brazilnew long %8.0g brazilnew
Brazil
canadanew long %8.0g canadanew
Canada
chilenew long %8.0g chilenew Chile
colombianew long %8.0g colombianew
Colombia
francenew long %8.0g francenew
France
germanynew long %8.0g germanynew
Germany
greatbritainnew long %8.0g greatbritainnew
Great Britain
hungarynew long %8.0g hungarynew
Hungary
indianew long %8.0g indianew India
indonesianew long %8.0g indonesianew
Indonesia
italynew long %8.0g italynew Italy
japannew long %8.0g japannew Japan
malaysianew long %8.0g malaysianew
Malaysia
mexiconew long %8.0g mexiconew
Mexico
netherlandsnew long %8.0g netherlandsnew
Netherlands
newzealandnew long %8.0g newzealandnew
New Zealand
perunew long %8.0g perunew Peru
polandnew long %8.0g polandnew
Poland
singaporenew long %8.0g singaporenew
Singapore
southafricanew long %8.0g southafricanew
South Africa
southkoreanew long %8.0g southkoreanew
South Korea
spainnew long %8.0g spainnew Spain
swedennew long %8.0g swedennew
Sweden
thailandnew long %8.0g thailandnew
Thailand
turkeynew long %8.0g turkeynew
Turkey
unitedstatesnew long %8.0g unitedstatesnew
United States
question str28 %28s
I typed:
reshape long globalcountrynew argentinanew australianew belgiumnew brazilnew canadanew chilenew colombianew fra
> ncenew germanynew greatbritainnew hungarynew indianew indonesianew italynew japannew malaysianew mexiconew neth
> erlandsnew newzealandnew perunew polandnew singaporenew southafricanew southkoreanew spainnew swedennew thailan
> dnew turkeynew unitedstatesnew, i(question) j(question)
variable question already exists
Data are already long
I am doing something wrong, but I can't figure out what is the issue (the country names are variable names and the values in 4 rows beneath them). The variable question is at the end and is a string with an- abbreviated name for the values in the 4 rows) Any help would .be appreciated.
Thanks, Ric Uslaner
Comment