Hi,
I have a dataset with several trade data over a number of countries. These countries all have a certain water scarcity index for example 1.25 or 3.25. I want to make three equally large groups of countries with low, medium and high water scarcity. So basically the indexes have to be divided into three groups. The command I used no was
egen HWSgroupAg2 = cut(WSAgricultural), group(3)
label define HWSgrouplabel 0 "Low" 1 "Medium" 2 "High"
label values HWSgroupAg2 HWSgrouplabel
The problem with this, however, is because the dataset consists out of trade transactions is that some countries are repeated in the dataset and, as a result, the amount of countries is not divided into three groups but the trade transactions of countries are divided into three groups. Does anybody have an idea how I should solve this?
Kind regards
I have a dataset with several trade data over a number of countries. These countries all have a certain water scarcity index for example 1.25 or 3.25. I want to make three equally large groups of countries with low, medium and high water scarcity. So basically the indexes have to be divided into three groups. The command I used no was
egen HWSgroupAg2 = cut(WSAgricultural), group(3)
label define HWSgrouplabel 0 "Low" 1 "Medium" 2 "High"
label values HWSgroupAg2 HWSgrouplabel
The problem with this, however, is because the dataset consists out of trade transactions is that some countries are repeated in the dataset and, as a result, the amount of countries is not divided into three groups but the trade transactions of countries are divided into three groups. Does anybody have an idea how I should solve this?
Kind regards

Comment