Dear Stata Users,
Can you please help me with the following issue.
clear
* Define the dataset
input str3 Location march1990 apr90 may1990
USA 10 20 30
UK 11 12 13
SWE 2 3 4
End
I have the above database (with many more columns). I need to create a database like the one below, where NOR is the average of rows that have “Location” equal to USA and UK
input str3 Location march1990 apr90 may1990
USA 10 20 30
UK 11 12 13
SWE 2 3 4
NOR 10.5 16 21.5
End
Thank you!
Can you please help me with the following issue.
clear
* Define the dataset
input str3 Location march1990 apr90 may1990
USA 10 20 30
UK 11 12 13
SWE 2 3 4
End
I have the above database (with many more columns). I need to create a database like the one below, where NOR is the average of rows that have “Location” equal to USA and UK
input str3 Location march1990 apr90 may1990
USA 10 20 30
UK 11 12 13
SWE 2 3 4
NOR 10.5 16 21.5
End
Thank you!
Comment