Learn R Programming

PWEALL (version 1.3.0.1)

Design and Monitoring of Survival Trials Accounting for Complex Situations

Description

Calculates various functions needed for design and monitoring survival trials accounting for complex situations such as delayed treatment effect, treatment crossover, non-uniform accrual, and different censoring distributions between groups. The event time distribution is assumed to be piecewise exponential (PWE) distribution and the entry time is assumed to be piecewise uniform distribution. As compared with Version 1.2.1, two more types of hybrid crossover are added. A bug is corrected in the function "pwecx" that calculates the crossover-adjusted survival, distribution, density, hazard and cumulative hazard functions. Also, to generate the crossover-adjusted event time random variable, a more efficient algorithm is used and the output includes crossover indicators.

Copy Link

Version

Install

install.packages('PWEALL')

Monthly Downloads

211

Version

1.3.0.1

License

GPL (>= 2)

Maintainer

Xiaodong Luo

Last Published

August 9th, 2023

Functions in PWEALL (1.3.0.1)

pwecxpwufindt

calculate the timeline when certain number of events accumulates
pwe

Piecewise exponential distribution: hazard, cumulative hazard, density, distribution, survival
pwecxpwuforvar

calculate the utility function used for varaince calculation
overallcovp1

calculate the first part of the overall covariance
overallcov

calculate the overall covariance
pwecxcens

Integration of the density of piecewise exponential distribution with crossover effect and the censoring function
overallcovp2

calculate the other parts of the overall covariance
pwecx

Various function for piecewise exponential distribution with crossover effect
pwecxpwu

Integration of the density of piecewise exponential distribution with crossover effect, censoring and recruitment function
qpwu

Piecewise uniform distribution: quantile function
qpwe

Piecewise exponential distribution: quantile function
pwefvplus

A utility functon
pwepowerfindt

Calculating the timepoint where a certain power of the specified test statistics is obtained
pwefv2

A utility function
pwu

Piecewise uniform distribution: distribution
overallvar

calculate the overall variance
pwepower

Calculating the powers of various the test statistics for superiority trials
pwepowerni

Calculating the powers of various the test statistics for non-inferiority trials
rpwu

Piecewise uniform distribution: random number generation
pwepowereq

Calculating the powers of various the test statistics for equivalence trials
rmstcov

Calculation of the variance and covariance of estimated restricted mean survival time
rmstsim

simulating the restricted mean survival times
pwesim

simulating the test statistics
wlrcal

A utility function to calculate the weighted log-rank statistics and their varainces given the weights
rmsth

Estimate the restricted mean survival time (RMST) and its variance from data
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
spf

A utility function
rmstpower

Calculate powers at different cut-points based on difference of restricted mean survival times (RMST)
rpwe

Piecewise exponential distribution: random number generation
rpwecx

Piecewise exponential distribution with crossover effect: random number generation
rmstpowerfindt

Calculating the timepoint where a certain power of mean difference of RMSTs is obtained
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
cpboundary

The stopping boundary based on the conditional power criteria
PWEALL-package

tools:::Rd_package_title("PWEALL")
innercov

A utility function to calculate the inner integration of the overall covariance
cp

Conditional power given observed log hazard ratio
cpstop

The stopping probability based on the stopping boundary
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
fourhr

A utility functon
hxbeta

A function to calculate the beta-smoothed hazard rate