Skip to content

Instantly share code, notes, and snippets.

@kenmomd
kenmomd / covid19_tokyo_rt_by_onset.csv
Created December 26, 2020 18:41
東京都の発症日別陽性者数とその実効再生産数Rt。ガウス過程またはポアソン過程の状態空間モデルにより平滑化。Rtは7日window、14日windowの2種類を算出。(.p7=ポアソン過程7日window)。2020-12-25時点
date onset.raw onset.poisson onset.gaussian Rt.lwr.raw7 Rt.raw7 Rt.upr.raw7 Rt.lwr.raw14 Rt.raw14 Rt.upr.raw14 Rt.lwr.p7 Rt.p7 Rt.upr.p7 Rt.lwr.g7 Rt.g7 Rt.upr.g7 Rt.lwr.p14 Rt.p14 Rt.upr.p14 Rt.lwr.g14 Rt.g14 Rt.upr.g14
2020-02-06 1 1 1
2020-02-07 2 1 1
2020-02-08 0 1 1
2020-02-09 0 1 1
2020-02-10 4 1 1
2020-02-11 0 1 1
2020-02-12 1 1 1
2020-02-13 0 1 1 0.775567071 1.96768555 4.746917671 0.889077567 2.172472339 5.0359572 0.894643454 2.174652157 5.316022415
2020-02-14 1 1 0 0.533483692 1.343785459 3.139132774 0.726621073 1.727734303 3.728174857 0.59988665 1.508137721 3.472829465
date confirmed.all confirmed.10 confirmed.20 confirmed.30 confirmed.40 confirmed.50 confirmed.60 confirmed.70 trend.all 10代以下 20代 30代 40代 50代 60代 70代以上
2020/1/24 1 1 0.338802465 0.069994339
2020/1/25 1 1 0 0.302035576 0.186494348 0.069885395
2020/1/26 0 0 0 0.270018295 0.178162703 0.069802294
2020/1/27 0 0 0 0.243256443 0.170298966 0.069767967
2020/1/28 0 0 0 0.221685654 0.162941028 0.069803691
2020/1/29 0 0 0 0.205048159 0.156105952 0.069929616
2020/1/30 1 1 0 0.192959645 0.149789908 0.07016435
2020/1/31 0 0 0 0.18497579 0.143972475 0.070525396
2020/2/1 0 0 0 0.181497469 0.138714783 0.071029018
GEO persons source
Sweden 1.8 Average number of persons per household by household composition, number of children and working status within households, 2019
Denmark 2.0 Eurostat(2020)
Germany (until 1990 former territory of the FRG) 2.0 https://appsso.eurostat.ec.europa.eu/nui/show.do?query=BOOKMARK_DS-052988_QID_52DFC79B_UID_-3F171EB0&layout=TIME,C,X,0;GEO,L,Y,0;HHWKSTAT,L,Z,0;N_CHILD,L,Z,1;HHCOMP,L,Z,2;INDICATORS,C,Z,3;&zSelection=DS-052988INDICATORS,OBS_FLAG;DS-052988HHCOMP,TOTAL;DS-052988HHWKSTAT,TOTAL;DS-052988N_CHILD,TOTAL;&rankName1=TIME_1_0_0_0&rankName2=N-CHILD_1_2_-1_2&rankName3=GEO_1_2_0_1&rankName4=HHWKSTAT_1_2_-1_2&rankName5=INDICATORS_1_2_-1_2&rankName6=HHCOMP_1_2_-1_2&sortC=ASC_-1_FIRST&rStp=&cStp=&rDCh=&cDCh=&rDM=true&cDM=true&footnes=false&empty=false&wai=false&time_mode=NONE&time_most_recent=false&lang=EN&cfo=%23%23%23%2C%23%23%23.%23%23%23
Estonia 2.0
Finland 2.0
Lithuania 2.1
Greece 2.2
France 2.2
Latvia 2.2
dates counts
2020-02-16 1
2020-02-17 0
2020-02-18 0
2020-02-19 3
2020-02-20 0
2020-02-21 1
2020-02-22 1
2020-02-23 1
2020-02-24 4
date count
2020-01-14 1
2020-01-15 0
2020-01-16 0
2020-01-17 1
2020-01-18 0
2020-01-19 0
2020-01-20 2
2020-01-21 0
2020-01-22 1
@kenmomd
kenmomd / covid19tokyo.R
Last active August 29, 2020 16:50
東京都の年代別COVID-19陽性者数の分析
#library
library(tidyverse)
library(incidence)
library(lubridate)
library(scales)
library(ggsci)
library(ggthemes)
library(glue)
library(patchwork)
library(jsonlite)
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="generator" content="pandoc"/>
<meta http-equiv="X-UA-Compatible" content="IE=EDGE"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script>(function() {
// If window.HTMLWidgets is already defined, then use it; otherwise create a
// new object. This allows preceding code to set options that affect the
// initialization process (though none currently exist).
window.HTMLWidgets = window.HTMLWidgets || {};
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script>(function() {
// If window.HTMLWidgets is already defined, then use it; otherwise create a
// new object. This allows preceding code to set options that affect the
// initialization process (though none currently exist).
window.HTMLWidgets = window.HTMLWidgets || {};
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script>(function() {
// If window.HTMLWidgets is already defined, then use it; otherwise create a
// new object. This allows preceding code to set options that affect the
// initialization process (though none currently exist).
window.HTMLWidgets = window.HTMLWidgets || {};