Hey,
I want to create a varibale which counts a number of countries.
or egen Number_of_countries= count (country1 country2 country3 country4 country5)
The Variable Number_of_countries should Show the number of countries with nonmissingvalues or names, so a Maximum of 5
I want to create a varibale which counts a number of countries.
egen Number_of_countries= rownonmiss (country1 country2 country3 country4 country5)
The Variable Number_of_countries should Show the number of countries with nonmissingvalues or names, so a Maximum of 5
Comment