base {WR} | R Documentation |
Compute the baseline parameters needed for sample size calculation for standard win ratio test
Description
Compute the baseline parameters and
needed for sample size calculation for standard win ratio test (see
WRSS
).
The calculation is based
on a Gumbel–Hougaard copula model for survival time and nonfatal event
time
for group
(1: treatment; 0: control):
where and
are the component-wise log-hazard ratios to be used
as effect size in
WRSS
.
We also assume that patients are recruited uniformly over the period
and followed until time
(
), with an exponential
loss-to-follow-up hazard
.
Usage
base(lambda_D, lambda_H, kappa, tau_b, tau, lambda_L, N = 1000, seed = 12345)
Arguments
lambda_D |
Baseline hazard |
lambda_H |
Baseline hazard |
kappa |
Gumbel–Hougaard copula correlation parameter |
tau_b |
Length of the initial (uniform) accrual period |
tau |
Total length of follow-up |
lambda_L |
Exponential hazard rate |
N |
Simulated sample size for monte-carlo integration. |
seed |
Seed for monte-carlo simulation. |
Value
A list containing real number zeta2
for
and bivariate vector
delta
for .
References
Mao, L., Kim, K. and Miao, X. (2021). Sample size formula for general win ratio analysis. Biometrics, https://doi.org/10.1111/biom.13501.
See Also
Examples
# see the example for WRSS