June 15, 201422:31 カテゴリ死亡率 Rでリーカーターモデル Rのパッケージ「demography」の紹介です。 今回使用したのは、以下のデータ。以前ブログでも紹介した「日本版死亡データベース」です。 <引用元> 国立社会保障・人口問題研究所「日本版死亡データベース」, http://www.ipss.go.jp/p-toukei/JMD/index.html (2014年6月15日ダウンロード) まず、「demography」のパッケージを読み込んで、 library(demography) 「read.demogdata」で、死亡率とエクスポージャのデータを読み込み、 JMD<- read.demogdata("JMD_mortality.txt", "JMD_population.txt", type="mortality", label="JPN") 「lca」で、