1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
<% setContentType('text/html') %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head><title>Brewing with Rapache: useR2007 example with Hmisc</title>
<link rel="stylesheet" type="text/css" href="/useR2007.css" />
<script src="/prototype.js" type="text/javascript"></script>
<script src="/useR2007.js" type="text/javascript"></script>
</head>
<body>
<h2>Power and Sample Size Calculations with spower from Hmisc</h2>
<div id="mainwrapper">
<div id="threecolwrap"><!--holds the left col background-->
<div id="twocolwrap"><!-- encloses the left and center columns-->
<div id="leftcol"><!-- the left column-->
<p>The following example<b>[1]</b> demonstrates the flexibility of spower and
related functions from <b>Hmisc</b>. We simulate a 2-arm (350 subjects/arm) 5-year follow-up
study for wich the control group's survival distribution is Weibull with 1-year
survival of .95 and 3-year survival of .7. All subjects are followed at least
one year, and patients enter the study with linearly increasing probability
starting with zero. Assume (1) there is no chance of dropin for the first 6
months, then the probability increases linearly up to .15 at 5 years; (2) there
is a linearly increasing chance of dropout up to .3 at 5 years; and (3) the
treatment has no effect for the first 9 months, then it has a constant effect
(hazard ratio of .75).
</p>
<div id="bibliography">
[1] Alzola CF, Harrell FE: An Introduction to S and the Hmisc and Design Libraries . Freely available electronic book.
</div>
</div>
<div id="content">
<div id="plot"><% brew('test/brew/useR2007plot.rhtml') %></div>
Characteristics of control and intervention groups with a lag in the treatment effect and with non-compliance in two directions.
</div><!--end of content div-->
</div><!--end of twocolwrap-->
<div id="rightcol">
<form method="get" name="spower" action="#">
<div class="clearfix"><label>1-year Survival Rate:</label><input type="text" name="p1" value="<%=p1%>"></input></div>
<div class="clearfix"><label>3-year Survival Rate:</label><input type="text" name="p2" value="<%=p2%>"></input>
<div class="clearfix"><label>Treatment Effect Start Month:</label><input type="text" name="mo" value="<%=mo%>"></input>
<input type="button" onclick="RePlot()" value="Re-plot"></input></div>
<div class="clearfix">
<input type="button" onclick="ReSimulate()" value="Power Estimate:"></input>
<img id="spinner" style="display: none" src="/spinner.gif"></div>
<div id="spowerResult"></div>
</div>
</form>
</div><!--end of rightcol div-->
</div><!--end of threecolwrap div-->
<div id="footer">
</div> <!--end footer -->
</div><!--end mainwrapper-->
</body></html>
|