wmst_pow | R Documentation |
Determine the asymptotic power of the test of WMST under a given trial design, or calculate the samples size needed to achieve a desired power.
wmst_pow(survC, survT, censor = NA, eperiod, end_study, tau0, tau1, n = NA, power = NA, plot = FALSE, sim = F, M = 1000, method = "tau_star", alpha = 0.05, two.sided = FALSE)
survC |
the survival distribution of the control group, as a list in the form output by |
survT |
the survival distribution of the treatment group, as a list in the form output by |
censor |
The common CDF of the censoring distribution for treatment and control arms. |
eperiod |
The duration of the enrollment period if subjects are assumed to accrue uniformly over the enrollment interval |
end_study |
The total duration of the study/follow-up period. |
tau0 |
A scaler vector to specify the lower truncation time points of the window for the WMST calculation.
|
tau1 |
A scaler value to specify the upper truncation time point of the window for the WMST calculation.
|
n0 |
The total sample size in control group. |
n1 |
The total sample size in treatment group. |
power |
The desired power of the test. |
alpha |
The type I error level. Default is 0.05. |
two.sided |
Determines whether the test is upper-tailed ( |
For more details, please see the package vignette: browseVignettes(package = "survWMST")
an object of class pow.
n |
the user-specified n, or if n was left blank, the n needed to achieve the user-specified power. |
powerWMST |
the user-specified power, or if power was left blank, the asymptotic power of the RMST test.
If |
Mitchell Paukner
Note to self: figure out what to place here!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.