I am using the Human Mortality Database. It has different values for each week and country of some variables like the deaths per age groups and the ratio. It also considers different countries England and Wales, Scotland and Northen Ireland. Instead, I would like to consider them as a unique country, the UK. How can I compute the sum of these three values for each week and sex? Can somebody help? thanks
This is what I have
# Country Year Week Rate
# GBR_SCO 2000 1 0.01
# GBR_SCO 2000 2 0.02
# GBR_SCO 2000 3 0.03
... ... ... ...
# GBR_SCO 2001 1 0.15
# GBR_SCO 2001 2 0.16
# GBR_WAL 2000 1 0.19
# GBR_WAL 2000 2 0.18
# GBR_WAL 2000 3 0.31
... ... ... ...
# GBR_WAL 2001 1 0.53
# GBR_WAL 2001 2 0.62
This is what I want to obtain
# Country Year Week Rate
# GBR 2000 1 0.20
# GBR 2000 2 0.20
# GBR 2000 3 0.34
# ... ... ... ...
# GBR 2001 1 0.68
# GBR 2002 2 0.78
Of course consider that in the dataset I have also other countries, years, and weeks that I want to keep. This is an example of what I want to do.