Description Usage Arguments Value References Examples
Monte Carlo power calculation for a trend-in-trend design.
1 |
N |
Sample Size. |
time |
Number of time points. |
G |
Number of CPE strata. |
cstat |
Value of the c-statistic. |
alpha_t |
A scaler that qunatifies the trend in exposure prevalence. |
beta_0 |
Intercept of the outcome model. |
power |
A given power. |
nrep |
Number of Monte Carlo replicates. |
OR.vec |
A vector of odds Ratios. |
Power |
A vector of calculated powers for a given OR.vec |
OR.vec |
A vector of odds Ratios |
DetectDifference |
A detectable difference for a given power value |
Ertefaie, A., Small, D., Ji, X., Leonard, C., Hennessy, S. (2018). Statistical Power for Trend-in-trend Design. Epidemiology 29(3), e21.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.