{"id":875,"date":"2017-12-03T10:48:29","date_gmt":"2017-12-03T01:48:29","guid":{"rendered":"https:\/\/plaza.umin.ac.jp\/~OIO\/?p=875"},"modified":"2017-12-10T06:27:07","modified_gmt":"2017-12-09T21:27:07","slug":"case-crossover-design-1","status":"publish","type":"post","link":"https:\/\/plaza.umin.ac.jp\/~OIO\/?p=875","title":{"rendered":"Case Crossover Design (1)"},"content":{"rendered":"<h2><strong>\u306f\u3058\u3081\u306b<\/strong><\/h2>\n<p>\u30b3\u30fc\u30d2\u30fc\u304c\u5fc3\u8840\u7ba1\u30a4\u30d9\u30f3\u30c8\u306b\u6709\u5bb3\u306a\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u306e\u4eee\u8aac\u3092\u7814\u7a76\u3057\u305f\u3001La Vecchia\u306e\u6587\u732e<span id=\"c1j2qb61hd\" class=\"abt-citation noselect mceNonEditable\" data-reflist=\"[&quot;323180116&quot;]\" data-footnote=\"undefined\"><sup>1<\/sup><\/span>\u306e\u30c7\u30fc\u30bf\u3092\u3082\u3068\u306b\u3001Case Crossover Design\u306e\u624b\u6cd5\u3092\u7d39\u4ecb\u3057\u305f\u3053\u3061\u3089\u306e\u6587\u732e<span id=\"t249hmaase\" class=\"abt-citation noselect mceNonEditable\" data-reflist=\"[&quot;938211031&quot;]\" data-footnote=\"undefined\"><sup>2<\/sup><\/span>\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002\u624b\u6cd5\u3092\u8a66\u3059\u4f8b\u984c\u3068\u3057\u3066\u9078\u3093\u3060\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u6587\u732e<span id=\"g1mt4ghg6r\" class=\"abt-citation noselect mceNonEditable\" data-reflist=\"[&quot;323180116&quot;]\" data-footnote=\"undefined\"><sup>1<\/sup><\/span>\u306e\u7d50\u8ad6\u306f\u5fc5\u305a\u3057\u3082\u5e83\u304f\u53d7\u3051\u5165\u308c\u3089\u308c\u3066\u3044\u308b\u3082\u306e\u3067\u306f\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<h2><strong>Case Crossover Design\u3068\u306f<\/strong><\/h2>\n<p>\u88fd\u85ac\u5de5\u696d\u5354\u4f1a\u306e\u30bf\u30b9\u30af\u304c\u4f5c\u6210\u3057\u305f\u8cc7\u6599\u3060\u3068\u6b21\u306e\u3088\u3046\u306b\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-878\" src=\"https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/d2143038829f912e6425e606082443fd.png\" alt=\"\" width=\"991\" height=\"353\" srcset=\"https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/d2143038829f912e6425e606082443fd.png 991w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/d2143038829f912e6425e606082443fd-150x53.png 150w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/d2143038829f912e6425e606082443fd-300x107.png 300w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/d2143038829f912e6425e606082443fd-768x274.png 768w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/d2143038829f912e6425e606082443fd-700x249.png 700w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/d2143038829f912e6425e606082443fd-800x285.png 800w\" sizes=\"auto, (max-width: 991px) 100vw, 991px\" \/><\/p>\n<p>\u300c\u66dd\u9732\u304c\u30a4\u30d9\u30f3\u30c8\u306e\u767a\u751f\u306b\u53ca\u307c\u3059\u5f71\u97ff\u304c\u6295\u85ac\u5f8c\u306e\u4e00\u5b9a\u306e\u671f\u9593\u306b\u9650\u5b9a\u3055\u308c,&#8230;\u3068\u4eee\u5b9a\u3067\u304d\u308b\u72b6\u6cc1\u3067\u9069\u5fdc\u3055\u308c\u308b\u300d\u3068\u3057\u3066\u3044\u307e\u3059\u3002\u96c6\u8a08\u4e0a\u3001\u4e00\u5b9a\u671f\u9593\u3068\u305d\u308c\u4ee5\u5916\u306e\u671f\u9593\u3092\u6bd4\u8f03\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u300c\u6295\u85ac\u5f8c\u306e\u4e00\u5b9a\u671f\u9593\u306b\u3053\u3068\u3055\u3089\u9ad8\u3044\u767a\u73fe\u7387\uff08\u5f37\u3044\u5f71\u97ff\uff09\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u691c\u5b9a\u3057\u3066\u3044\u308b\u300d\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u8a00\u3046\u6c17\u3082\u3057\u307e\u3059\u3002<\/p>\n<p>Modern Epidemiology by Rothman\u3067\u3082\u6b21\u306e\u3088\u3046\u306b\u8aac\u660e\u3057\u3066\u3044\u3066\u3001\u4e00\u5b9a\u306e\u4eee\u5b9a\u306e\u4e0a\u3067\u306e\u3001case\u3068control\u306e\u6bd4\u8f03\u3068\u3044\u3046\u7acb\u5834\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<blockquote><p>When the exposure under study is defined by proximity to an environmental source (e.g., a power line), it may be possible to construct a specular (hypothetical) control for each case by conducting a \u201cthought experiment.\u201d Either the case or the exposure source is imaginarily moved to another<br \/>\nlocation that would be equally likely were there no exposure effect; the case exposure level under this hypothetical configuration is then treated as the (matched) \u201ccontrol\u201d exposure for the case (Zaffanella et al., 1998). When the specular control arises by examining the exposure experience of the case outside of the time in which exposure could be related to disease occurrence, the result is called a case-crossover study.<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h2><strong>Case Crossover Design \u306eR\u30b3\u30fc\u30c9<\/strong><\/h2>\n<p>\u3068\u308a\u3042\u3048\u305a\u30b3\u30fc\u30c9\u90e8\u5206\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<blockquote><p>##################################<br \/>\n#<br \/>\n# Case Crossover design converted from<br \/>\n# Ann Transl Med 2016;4(18):341<br \/>\n#<br \/>\n# Example from<br \/>\n# La Vecchia and colleagues<br \/>\n# coffee intake and MI<br \/>\n# Am J Epidemiol 1989;130:481-5<br \/>\n#<br \/>\n# 12\/2\/2017 Y. Oshima<br \/>\n#<br \/>\n##################################<\/p>\n<p>t&lt;-c(9,1\/3,3,22,6,7,12,5,0.5,24)<br \/>\nfrq&lt;-c(730,365,36,1820,2920,24,730,730,3650,365)<\/p>\n<p>T&lt;-365*24<br \/>\nefftime&lt;-ifelse(t&gt;=1,0,1)<br \/>\nrr&lt;-sum(efftime*(T-frq))\/sum((1-efftime)*frq)<br \/>\nrr<\/p>\n<p>var.log&lt;-sum(frq*(T-frq))\/(sum(efftime*(T-frq))*sum((1-efftime)*frq))<br \/>\nse.log&lt;-sqrt(var.log)<br \/>\nlo.log&lt;-log(rr)-1.96*se.log<br \/>\nhi.log&lt;-log(rr)+1.96*se.log<br \/>\nlo&lt;-exp(lo.log)<br \/>\nhi&lt;-exp(hi.log)<\/p>\n<p>or&lt;-sum(efftime*(T-frq-(1-efftime)))\/sum((1-efftime)*(frq-efftime))<br \/>\nvar.log.or&lt;-(sum(efftime*(T-frq-1+efftime)*(efftime+ T-frq-1+efftime))\/(2*(sum(efftime*(T-frq-1+efftime)))^2))+(sum(efftime*(T-frq-1+efftime)*(1-efftime+frq-efftime)+(1-efftime)*(frq-efftime)*(efftime+(T-frq-1+efftime)))\/(2*sum(efftime*(T-frq-1+efftime))*sum((1-efftime)*(frq-efftime))))+(sum((1-efftime)*(frq-efftime)*(1-efftime+frq-efftime))\/(2*(sum((1-efftime)*(frq-efftime)))^2))<br \/>\nse.log.or&lt;-sqrt(var.log.or)<br \/>\nlo.log.or&lt;-log(or)-1.96*se.log.or<br \/>\nhi.log.or&lt;-log(or)+1.96*se.log.or<br \/>\nlo.or&lt;-exp(lo.log.or)<br \/>\nhi.or&lt;-exp(hi.log.or)<\/p>\n<p>matrix&lt;-matrix(round(c(rr,lo,hi,or,lo.or,hi.or),2),nrow=2,byrow=TRUE)<br \/>\nrownames(matrix)&lt;-c(&#8220;RR&#8221;,&#8221;OR&#8221;)<br \/>\ncolnames(matrix)&lt;-c(&#8220;Value&#8221;,&#8221;low 95% CI&#8221;,&#8221;high 95% CI&#8221;)<br \/>\nmatrix<\/p>\n<p>mat&lt;-matrix(, nrow = T-1, ncol = 0)<br \/>\nfor (i in 1:10) {<br \/>\nif (T%%frq[i]==0) {<br \/>\nexposure&lt;-c(rep(c(1,rep(0,T\/frq[i]-1)),frq[i]))[-T]<br \/>\n} else {<br \/>\nexposure&lt;-c(rep(c(1,rep(0,trunc(T\/frq[i])-<br \/>\n1)),frq[i]),rep(0,T-frq[i]*trunc(T\/frq[i])))[-T]<br \/>\n}<br \/>\nmat&lt;-cbind(mat,exposure)<br \/>\n}<\/p>\n<p>commat&lt;-rbind(efftime,mat)<br \/>\nlibrary(reshape2)<br \/>\ndata.wide&lt;-as.data.frame(commat)<br \/>\ncolnames(data.wide)&lt;-c(1:10)<br \/>\ndata&lt;-melt(data.wide,measure=c(1:10))<br \/>\ncolnames(data)&lt;-c(&#8220;id&#8221;,&#8221;exposure&#8221;)<br \/>\ndata$case&lt;-rep(c(1,rep(0,T-1)),5)<br \/>\nhead(data)<\/p>\n<p>library(survival)<br \/>\nmod&lt;- clogit(case~exposure+strata(id),data)<br \/>\nsummary(mod)<\/p>\n<p>data$clock&lt;-c(rep(1,T\/(365*4)),rep(2,T\/(365*4)),rep(3,T\/(365*4)),rep(4,T\/(365*4)))<br \/>\nmod.adj&lt;- clogit(case~exposure+clock+strata(id),data)<br \/>\nsummary(mod.adj)<\/p><\/blockquote>\n<h2><strong>\u7d50\u679c\u306e\u7167\u5408<\/strong><\/h2>\n<h4><strong>Cochran-Mantel-Haenszel\u306e\u30aa\u30c3\u30ba\u6bd4<\/strong><\/h4>\n<p>\u8ad6\u6587\u3067\u306f\u6b21\u306e\u901a\u308a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-881\" src=\"https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD.png\" alt=\"\" width=\"909\" height=\"146\" srcset=\"https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD.png 909w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD-150x24.png 150w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD-300x48.png 300w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD-768x123.png 768w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD-700x112.png 700w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD-800x128.png 800w\" sizes=\"auto, (max-width: 909px) 100vw, 909px\" \/><\/p>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8d70\u3089\u305b\u308b\u3068\u3001\u4e00\u81f4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-880\" src=\"https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD2.png\" alt=\"\" width=\"378\" height=\"131\" srcset=\"https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD2.png 378w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD2-150x52.png 150w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD2-300x104.png 300w\" sizes=\"auto, (max-width: 378px) 100vw, 378px\" \/><\/p>\n<h4><strong>Conditional logistic regression\u306e\u30aa\u30c3\u30ba\u6bd4<\/strong><\/h4>\n<p>\u8ad6\u6587\u3067\u306f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-879\" src=\"https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD3.png\" alt=\"\" width=\"993\" height=\"122\" srcset=\"https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD3.png 993w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD3-150x18.png 150w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD3-300x37.png 300w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD3-768x94.png 768w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD3-700x86.png 700w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD3-800x98.png 800w\" sizes=\"auto, (max-width: 993px) 100vw, 993px\" \/><\/p>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8d70\u3089\u305b\u308b\u3068\u3001\u3053\u3061\u3089\u3082\u4e00\u81f4\u3057\u3066\u3044\u307e\u3059\u3002\uff08\u5f53\u305f\u308a\u524d\u304b\uff1f\uff09<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-882\" src=\"https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD4.png\" alt=\"\" width=\"576\" height=\"90\" srcset=\"https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD4.png 576w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD4-150x23.png 150w, https:\/\/plaza.umin.ac.jp\/~OIO\/wp-content\/uploads\/2017\/12\/CCD4-300x47.png 300w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/p>\n<p><a href=\"https:\/\/wp.me\/p9b6zl-ff\">\u3064\u3065\u304f<\/a><\/p>\n<div id=\"abt-bibliography\" class=\"abt-bibliography noselect mceNonEditable\" data-reflist=\"[&quot;323180116&quot;,&quot;938211031&quot;]\">\n<h3 class=\"abt-bibliography__heading\">References:<\/h3>\n<div id=\"abt-bibliography__container\" class=\"abt-bibliography__container\">\n<div id=\"323180116\">\n<div class=\"csl-entry flush\">\n<div class=\"csl-left-margin\">1.<\/div>\n<div class=\"csl-right-inline\">La V, Gentile A, Negri E, Parazzini F, Franceschi S. Coffee consumption and myocardial infarction in women. <i>Am J Epidemiol<\/i>. 1989;130(3):481-485.<span class=\"abt-url\"> [<a href=\"https:\/\/www.ncbi.nlm.nih.gov\/pubmed\/2763993\" target=\"_blank\" rel=\"noopener\">PubMed<\/a>]<\/span><\/div>\n<\/div>\n<\/div>\n<div id=\"938211031\">\n<div class=\"csl-entry flush\">\n<div class=\"csl-left-margin\">2.<\/div>\n<div class=\"csl-right-inline\">Zhang Z. Case-crossover design and its implementation in R. <i>Ann Transl Med<\/i>. 2016;4(18):341.<span class=\"abt-url\"> [<a href=\"https:\/\/www.ncbi.nlm.nih.gov\/pmc\/articles\/PMC5066041\" target=\"_blank\" rel=\"noopener\">PMC<\/a>]<\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u30b3\u30fc\u30d2\u30fc\u304c\u5fc3\u8840\u7ba1\u30a4\u30d9\u30f3\u30c8\u306b\u6709\u5bb3\u306a\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u306e\u4eee\u8aac\u3092\u7814\u7a76\u3057\u305f\u3001La Vecchia\u306e\u6587\u732e1\u306e\u30c7\u30fc\u30bf\u3092\u3082\u3068\u306b\u3001Case Crossover Design\u306e\u624b\u6cd5\u3092\u7d39\u4ecb\u3057\u305f\u3053\u3061\u3089\u306e\u6587\u732e2\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-875","post","type-post","status-publish","format-standard","hentry","category-science"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p9b6zl-e7","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/plaza.umin.ac.jp\/~OIO\/index.php?rest_route=\/wp\/v2\/posts\/875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/plaza.umin.ac.jp\/~OIO\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plaza.umin.ac.jp\/~OIO\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plaza.umin.ac.jp\/~OIO\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plaza.umin.ac.jp\/~OIO\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=875"}],"version-history":[{"count":0,"href":"https:\/\/plaza.umin.ac.jp\/~OIO\/index.php?rest_route=\/wp\/v2\/posts\/875\/revisions"}],"wp:attachment":[{"href":"https:\/\/plaza.umin.ac.jp\/~OIO\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plaza.umin.ac.jp\/~OIO\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plaza.umin.ac.jp\/~OIO\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}