Learn R Programming

⚠️There's a newer version (1.3) of this package.Take me there.

SurrogateTest (version 1.2)

Early Testing for a Treatment Effect using Surrogate Marker Information

Description

Provides functions to test for a treatment effect in terms of the difference in survival between a treatment group and a control group using surrogate marker information obtained at some early time point in a time-to-event outcome setting. Nonparametric kernel estimation is used to estimate the test statistic and perturbation resampling is used for variance estimation. More details will be available in the future in: Parast L, Cai T, Tian L (2019). Using a Surrogate Marker for Early Testing of a Treatment Effect. Biometrics, In press.

Copy Link

Version

Install

install.packages('SurrogateTest')

Monthly Downloads

224

Version

1.2

License

GPL

Maintainer

Layla Parast

Last Published

March 29th, 2020

Functions in SurrogateTest (1.2)

delta.ea.single

Calculates the early treatment effect estimate in Study A
censor.weight

Calculates censoring probability for weighting
cumsum2

Helper function
recover.B

Recover an estimate of the treatment effect at time t in Study B
Kern.FUN

Calculates kernel matrix
pred.smooth.surv.new

Calculates the conditional probability of survival to time t
VTM

Repeats a row.
int.hazc

Helper function
int.hazc.plan

Helper function
dataA

Hypothetical Study A data
var.delta.eb

Variance estimation
dataB

Hypothetical Study B data
delta.estimate

Calculates the treatment effect, the difference in survival at time t
design.study

Power and sample size calculation for designing a future study
helper.si

Helper function
early.delta.test

Estimate and test the early treatment effect
delta.eb.single

Calculates the early treatment effect estimate in Study B