PWEALL-package |
Design and Monitoring of Survival Trials Accounting for Complex Situations |
cp |
Conditional power given observed log hazard ratio |
cpboundary |
The stopping boundary based on the conditional power criteria |
cpstop |
The stopping probability based on the stopping boundary |
fourhr |
A utility functon |
hxbeta |
A function to calculate the beta-smoothed hazard rate |
innercov |
A utility function to calculate the inner integration of the overall covariance |
innervar |
A utility function to calculate the inner integration of the overall variance |
instudyfindt |
calculate the timeline in study when some or all subjects have entered |
ovbeta |
calculate the overall log hazard ratio |
overallcov |
calculate the overall covariance |
overallcovp1 |
calculate the first part of the overall covariance |
overallcovp2 |
calculate the other parts of the overall covariance |
overallvar |
calculate the overall variance |
pwe |
Piecewise exponential distribution: hazard, cumulative hazard, density, distribution, survival |
PWEALL |
Design and Monitoring of Survival Trials Accounting for Complex Situations |
pwecx |
Various function for piecewise exponential distribution with crossover effect |
pwecxcens |
Integration of the density of piecewise exponential distribution with crossover effect and the censoring function |
pwecxpwu |
Integration of the density of piecewise exponential distribution with crossover effect, censoring and recruitment function |
pwecxpwufindt |
calculate the timeline when certain number of events accumulates |
pwecxpwuforvar |
calculate the utility function used for varaince calculation |
pwefv2 |
A utility function |
pwefvplus |
A utility functon |
pwepower |
Calculating the powers of various the test statistics for superiority trials |
pwepowereq |
Calculating the powers of various the test statistics for equivalence trials |
pwepowerfindt |
Calculating the timepoint where a certain power of the specified test statistics is obtained |
pwepowerni |
Calculating the powers of various the test statistics for non-inferiority trials |
pwesim |
simulating the test statistics |
pwu |
Piecewise uniform distribution: distribution |
qpwe |
Piecewise exponential distribution: quantile function |
qpwu |
Piecewise uniform distribution: quantile function |
rmstcov |
Calculation of the variance and covariance of estimated restricted mean survival time |
rmsth |
Estimate the restricted mean survival time (RMST) and its variance from data |
rmstpower |
Calculate powers at different cut-points based on difference of restricted mean survival times (RMST) |
rmstpowerfindt |
Calculating the timepoint where a certain power of mean difference of RMSTs is obtained |
rmstsim |
simulating the restricted mean survival times |
rmstutil |
A utility function to calculate the true restricted mean survival time (RMST) and its variance account for delayed treatment, discontinued treatment and non-uniform entry |
rpwe |
Piecewise exponential distribution: random number generation |
rpwecx |
Piecewise exponential distribution with crossover effect: random number generation |
rpwu |
Piecewise uniform distribution: random number generation |
spf |
A utility function |
wlrcal |
A utility function to calculate the weighted log-rank statistics and their varainces given the weights |
wlrcom |
A function to calculate the various weighted log-rank statistics and their varainces |
wlrutil |
A utility function to calculate some common functions in contructing weights |