power_nb | R Documentation |
Calculate sample size or power for comparing 2 negative binomial rates (either n or power needs to included)
power_nb( n = NULL, r0, r1, RR, k, duration = 1, ssize.ratio = 1, alpha = 0.025, power = NULL, approach = 3 )
n |
Sample Size; Leave NULL to calculate power |
r0 |
Event Rate (Placebo) |
r1 |
Event Rate (Treatment); Alernatively, enter RR |
RR |
Rate Ratio |
k |
Negative binomial dispersion parameter (see dispersion_nb Function) |
duration |
Average treatment duration |
ssize.ratio |
Sample allocation ratio n1/n0 (Default is 1) |
alpha |
1-sided alpha (Type I error) |
approach |
1 (Use reference group rate), 2 (Use true rates), or 3 (Use ML estimation); see Zhu and Lakkis (2014). |
beta |
Type II error; Leave NULL to calculate sample size |
Either power of Number of events reported
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.