Download detailed mortality and population data of the 47 prefectures in Japan, in a single object. The source of data is the Japanese Mortality Database.
Arguments
- what
What type of data are you looking for? The following options are available for JMD:
"births"– birth records;"population"– population size;"Dx"– death counts;"Ex"– exposure-to-risk;"mx"– central death-rates;"LT_f"– period life tables for females;"LT_m"– period life tables for males;"LT_t"– period life tables both sexes combined;"e0"– period life expectancy at birth;
- regions
Specify the region specific data you want to download by adding the JMD region code/s. Options:
"Japan", "Hokkaido", "Aomori", "Iwate", "Miyagi","Akita", "Yamagata", "Fukushima", "Ibaraki", "Tochigi", "Gunma", "Saitama", "Chiba", "Tokyo", "Kanagawa", "Niigata", "Toyama", "Ishikawa", "Fukui", "Yamanashi", "Nagano", "Gifu", "Shizuoka","Aichi", "Mie", "Shiga", "Kyoto", "Osaka", "Hyogo", "Nara", "Wakayama", "Tottori", "Shimane", "Okayama", "Hiroshima", "Yamaguchi", "Tokushima", "Kagawa", "Ehime", "Kochi", "Fukuoka", "Saga", "Nagasaki", "Kumamoto", "Oita", "Miyazaki", "Kagoshima", "Okinawa". IfNULLdata for all the regions are downloaded at once.- interval
Datasets are given in various age and time formats based on which the records are aggregated. Interval options:
"1x1"– by age and year;"1x5"– by age and 5-year time interval;"1x10"– by age and 10-year time interval;"5x1"– by 5-year age group and year;"5x5"– by 5-year age group and 5-year time interval;"5x10"–by 5-year age group and 10-year time interval.
- save
Do you want to save a copy of the dataset on your local machine? Logical. Default:
FALSE.- show
Choose whether to display a progress bar. Logical. Default:
TRUE.
Value
A ReadJMD object that contains:
- input
List with the input values;
- data
Data downloaded from JMD;
- download.date
Time stamp;
- years
Numerical vector with the years covered in the data;
- ages
Numerical vector with ages covered in the data.
Details
The Japanese Mortality Database is a mortality database reorganised to be consistent with the Human Mortality Database, for all Japan and by prefecture; see the JMD website for its research project and methods. The database is open, so no login is needed. Its life tables are built to be internationally comparable, so they need not match the official Japanese life tables, which use a different base population and estimation method.
The region codes are prefecture names, not the numeric JIS codes used in the server's folder names; the reader maps one to the other internally.
Examples
if (FALSE) { # \dontrun{
# Download demographic data for Fukushima and Tokyo regions in 1x1 format
# Death counts. We don't want to export data outside R.
JMD_Dx <- ReadJMD(what = "Dx",
regions = c('Fukushima', 'Tokyo'),
interval = "1x1",
save = FALSE)
JMD_Dx
# Download life tables for female population in all the states and export data.
LTF <- ReadJMD(what = "LT_f", interval = "5x5", save = FALSE)
LTF
} # }