﻿{"id":2439,"date":"2013-04-05T18:19:04","date_gmt":"2013-04-05T09:19:04","guid":{"rendered":"http:\/\/fujiitoshiki.com\/improvesociety\/?p=2439"},"modified":"2014-07-25T14:49:37","modified_gmt":"2014-07-25T05:49:37","slug":"how-to-calculate-appropriate-sample-size-in-cox-proportional-hazard-analysis-with-cross-tabulation","status":"publish","type":"post","link":"https:\/\/www.fujiitoshiki.com\/improvesociety\/?p=2439","title":{"rendered":"How to calculate appropriate sample size in Cox proportional hazard analysis with cross tabulation?"},"content":{"rendered":"<div class=\"theContentWrap-ccc\"><p>In this article, I&#8217;d like to describe how to calculate appropriate sample size in Cox proportional analysis with cross tabulation, <span style=\"font-family: symbol;\">a<\/span> error and <span style=\"font-family: symbol;\">b<\/span> error. <span style=\"font-family: symbol;\">a<\/span> error is called as statistical significance or type 1 error and <span style=\"font-family: symbol;\">b<\/span> error is called as type 2 error, respectively. 1 &#8211; <span style=\"font-family: symbol;\">b<\/span> is called as statistical power. <span style=\"font-family: symbol;\">a<\/span> is usually configured at 0.05 (two-tailed) and <span style=\"font-family: symbol;\">b<\/span> is configured at 0.2 (one-sided), respectively. As a result, Z<sub><span style=\"font-family: symbol;\">a<\/span>\/2<\/sub> is 1.96 and Z<sub><span style=\"font-family: symbol;\">b<\/span><\/sub> is 0.84, respectively.<\/p>\n<p>I&#8217;d like to assume that S<sub>1<\/sub> is survival rate of risk group or intervention group and S<sub>0<\/sub> is survival rate of control group, without risk or intervention. <span style=\"font-family: symbol;\">q<\/span> is ratio of logarithm of them.<\/p>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+LN%28S_1%29+%3D+Exp%28B%29LN%28S_0%29%5Cvspace%7B0.1in%7D%5C%5C%5Ctheta+%3D+Exp%28B%29+%3D+%5Cfrac%7BLN%28S_1%29%7D%7BLN%28S_0%29%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\displaystyle LN(S_1) = Exp(B)LN(S_0)\\vspace{0.1in}\\\\\\theta = Exp(B) = \\frac{LN(S_1)}{LN(S_0)}' title='\\displaystyle LN(S_1) = Exp(B)LN(S_0)\\vspace{0.1in}\\\\\\theta = Exp(B) = \\frac{LN(S_1)}{LN(S_0)}' class='latex' \/><\/p>\n<\/p>\n<p>I&#8217;d like to use cross tabulation here. You can replace endpoint with death or failure.<\/p>\n<table border=\"0\" align=\"left\">\n<tbody>\n<tr style=\"background-color: #a9a9a9;\">\n<td style=\"background-color: #a9a9a9;\"> <\/td>\n<td align=\"center\" valign=\"middle\"><strong><span style=\"font-size: small; font-family: georgia, palatino; color: #ffffff;\">ENDPOINT<\/span><\/strong><\/td>\n<td align=\"center\" valign=\"middle\"><strong><span style=\"font-size: small; font-family: georgia, palatino; color: #ffffff;\">CENSOR<\/span><\/strong><\/td>\n<td style=\"background-color: #a9a9a9;\" align=\"center\" valign=\"middle\"><span style=\"font-size: small; font-family: georgia, palatino; color: #ffffff;\">Marginal total<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #a9a9a9;\"><strong><span style=\"font-size: small; font-family: georgia, palatino; color: #ffffff;\">POSITIVE<\/span><\/strong><\/td>\n<td align=\"center\" valign=\"middle\"><span style=\"font-size: small; font-family: georgia, palatino;\">a<\/span><\/td>\n<td align=\"center\" valign=\"middle\"><span style=\"font-family: georgia, palatino; font-size: small;\"><span style=\"line-height: 19px;\">b<\/span><\/span><\/td>\n<td style=\"background-color: #a9a9a9;\" align=\"center\" valign=\"middle\"><span style=\"font-size: small; font-family: georgia, palatino; color: #ffffff;\">a + b<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: #a9a9a9;\"><strong><span style=\"font-size: small; font-family: georgia, palatino; color: #ffffff;\">NEGATIVE<\/span><\/strong><\/td>\n<td align=\"center\" valign=\"middle\"><span style=\"font-size: small; font-family: georgia, palatino;\">c<\/span><\/td>\n<td align=\"center\" valign=\"middle\"><span style=\"font-size: small; font-family: georgia, palatino;\">d<\/span><\/td>\n<td style=\"background-color: #a9a9a9;\" align=\"center\" valign=\"middle\"><span style=\"font-size: small; font-family: georgia, palatino; color: #ffffff;\">c + d<\/span><\/td>\n<\/tr>\n<tr style=\"background-color: #a9a9a9;\">\n<td style=\"background-color: #a9a9a9;\"><span style=\"font-size: small; font-family: georgia, palatino; color: #ffffff;\">Marginal total<\/span><\/td>\n<td align=\"center\" valign=\"middle\"><span style=\"font-size: small; font-family: georgia, palatino; color: #ffffff;\">a + c<\/span><\/td>\n<td align=\"center\" valign=\"middle\"><span style=\"font-size: small; font-family: georgia, palatino; color: #ffffff;\">b + d<\/span><\/td>\n<td align=\"center\" valign=\"middle\"><span style=\"font-size: small; font-family: georgia, palatino; color: #ffffff;\">N<\/span> <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+S_1+%3D+%5Cfrac%7Bb%7D%7Ba%2Bb%7D%5Cvspace%7B0.1in%7D%5C%5CS_0+%3D+%5Cfrac%7Bd%7D%7Bc%2Bd%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\displaystyle S_1 = \\frac{b}{a+b}\\vspace{0.1in}\\\\S_0 = \\frac{d}{c+d}' title='\\displaystyle S_1 = \\frac{b}{a+b}\\vspace{0.1in}\\\\S_0 = \\frac{d}{c+d}' class='latex' \/><\/p>\n<\/p>\n<p>You can calculate estimated number of death (e) in both group as following formula by Freedman&#8217;s approximate calculation.<\/p>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+e+%3D+%5Cleft%28%5Cfrac%7B%5Ctheta%2B1%7D%7B%5Ctheta-1%7D%5Cright%29%5E2%28Z_%7B%5Calpha%2F2%7D%2BZ_%5Cbeta%29%5E2&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\displaystyle e = \\left(\\frac{\\theta+1}{\\theta-1}\\right)^2(Z_{\\alpha\/2}+Z_\\beta)^2' title='\\displaystyle e = \\left(\\frac{\\theta+1}{\\theta-1}\\right)^2(Z_{\\alpha\/2}+Z_\\beta)^2' class='latex' \/><\/p>\n<\/p>\n<p>You can calculate entry size (n) in each group, as following formula.<\/p>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+e+%3D+n%281-S_0%29%2Bn%281-S_1%29%5Cvspace%7B0.1in%7D%5C%5Cn+%3D+%5Cfrac%7Be%7D%7B2+-+S_0+-+S_1%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\displaystyle e = n(1-S_0)+n(1-S_1)\\vspace{0.1in}\\\\n = \\frac{e}{2 - S_0 - S_1}' title='\\displaystyle e = n(1-S_0)+n(1-S_1)\\vspace{0.1in}\\\\n = \\frac{e}{2 - S_0 - S_1}' class='latex' \/><\/p>\n<\/p>\n<p>You have to correct entry size with drop-out rate (w) as following formula. Throughout trial, two times of n is needed.<\/p>\n<p><img src='https:\/\/s0.wp.com\/latex.php?latex=%5Cdisplaystyle+n+%3D+%5Cfrac%7Be%7D%7B%282+-+S_0+-+S_1%29%281-w%29%7D&#038;bg=T&#038;fg=000000&#038;s=0' alt='\\displaystyle n = \\frac{e}{(2 - S_0 - S_1)(1-w)}' title='\\displaystyle n = \\frac{e}{(2 - S_0 - S_1)(1-w)}' class='latex' \/><\/p>\n<\/p>\n<p><iframe loading=\"lazy\" width=\"320\" height=\"240\" style=\"width: 120px; height: 240px;\" src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=fujiitoshiki-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=4254127553\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/ws-na.amazon-adsystem.com\/widgets\/q?ServiceVersion=20070822&#038;OneJS=1&#038;Operation=GetAdHtml&#038;MarketPlace=US&#038;source=ss&#038;ref=ss_til&#038;ad_type=product_link&#038;tracking_id=improsocie-20&#038;marketplace=amazon&#038;region=US&#038;placement=1405146508&#038;asins=1405146508&#038;linkId=V3EZGUMD6OZIA4FD&#038;show_border=true&#038;link_opens_in_new_window=true\"><\/iframe><\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>In this article, I&#8217;d like to describe how to calculate appropriate sample size in Cox proportional analy &hellip; <a href=\"https:\/\/www.fujiitoshiki.com\/improvesociety\/?p=2439\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;How to calculate appropriate sample size in Cox proportional hazard analysis with cross tabulation?&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-2439","post","type-post","status-publish","format-standard","hentry","category-statistics"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/posts\/2439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2439"}],"version-history":[{"count":26,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/posts\/2439\/revisions"}],"predecessor-version":[{"id":5969,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=\/wp\/v2\/posts\/2439\/revisions\/5969"}],"wp:attachment":[{"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fujiitoshiki.com\/improvesociety\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}