Description Usage Arguments Details Value References See Also Examples
Compute the power of the Hazard Ratio Test, or determine parameters to obtain a target power.
1 2 |
n |
number of subjects needed for study |
hr |
Hazard Ratio (ie, the "ratio worth detecting") |
p1 |
proportion of cohort with history of exposure |
pi2 |
probability a member of unexposed cohort will die during follow-up |
sig.level |
significance level (Type I error probability) |
power |
power of test (1 minus Type II error probability) |
alternative |
one- or two-sided test. Can be abbreviated. |
tol |
numerical tolerance used in root finding, the default providing (at least)
four significant digits. Root finding refers to |
Exactly one of the parameters n and power must be passed as NULL, and that parameter is determined from the others.
Object of class "power.htest", a list of the arguments (including the computed one) augmented with method and note elements.
Newman (2001), pages 286 - 287
1 2 3 | ## Example 14.4
power.hr.test(hr = 2, p1 = 0.251, pi2 = 0.174, power = 0.8)
power.hr.test(n = 414, hr = 2, p1 = 0.251, pi2 = 0.174)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.