Mortality in Europe
Jump to navigation
Jump to search
Moderator:Virpi Kollanus (see all) |
This page is a stub. You may improve it into a full page. |
Upload data
|
Question
What is the annual mortality rate in Europe per country and ICD10 category?
Indices
- Country (Geo)
- Cause of death (Icd10)
- Age
- Sex
- Year
- Unit of measurement (Unit) RT means standardised mortality rate.
Answer
Example graphs from the data. [1]
Rationale
Data
The main data comes from Eurostat from where the file "Causes of death - standardised death rate per 100 000 inhabitants - annual Data (hlth_cd_asdr)" was downloaded on 12th Jan 2015 and stored in Opasnet base.
Other data:
Unit
- Standardised incidence (1/100000py)
- Deaths/year
Calculations
This code was used to manage the data before using the OpasnetBaseImport.
Show details |
---|
library(reshape2) library(OpasnetUtils) d <- read.table("//cesium/jtue$/_Downloads/hlth_cd_asdr.tsv", sep = "\t") d1 <- strsplit(as.character(d$V1), split = ",") d1 <- as.data.frame(t(array(unlist(d1), dim = c(length(d1[[1]]), length(d1))))) colnames(d1) <- c("Unit", "Sex", "Age", "Icd10", "Geo") colnames(d) <- c("Remove", 2010:1994) d <- cbind(d1, d) d$Remove <- NULL d <- d[2:nrow(d) , ] d <- melt(d, measure.vars = 6:ncol(d), variable.name = "Year", value.name = "Result") d$Result <- gsub("[a-z]", "", d$Result) d$Result[grepl(":", d$Result)] <- NA d$Result <- as.numeric(d$Result) d <- dropall(d) write.csv(d, file = "//cesium/jtue$/_Documents/MortInEurope.csv", row.names = FALSE) |