Learn R Programming

SurrogateOutcome (version 1.2)

Estimation of the Proportion of Treatment Effect Explained by Surrogate Outcome Information

Description

Estimates the proportion of treatment effect on a censored primary outcome that is explained by the treatment effect on a censored surrogate outcome/event. All methods are described in detail in Parast, et al (2020) "Assessing the Value of a Censored Surrogate Outcome" and Wang et al (2025) "Model-free Approach to Evaluate a Censored Intermediate Outcome as a Surrogate for Overall Survival" . A tutorial for this package can be found at .

Copy Link

Version

Install

install.packages('SurrogateOutcome')

Monthly Downloads

212

Version

1.2

License

GPL

Maintainer

Layla Parast

Last Published

November 7th, 2025

Functions in SurrogateOutcome (1.2)

delta.t.RMST

Calculates the residual treatment effect (the difference in restricted mean survival time at time t) after accounting for the treatment effect on the primary outcome up to the landmark time
cumsum2

Helper function
delta.estimate

Estimates the treatment effect at time t, defined as the difference in the restricted mean survival time
delta.q.event.semi.RMST

Calculates the residual treatment effect (the difference in restricted mean survival time at time t) after accounting for the treatment effect on the surrogate outcome information up to the landmark time
delta.estimate.RMST

Helper function
new.q

Helper function
delta.q.event.RMST

Calculates the residual treatment effect (the difference in restricted mean survival time at time t) after accounting for the treatment effect on the surrogate outcome information up to the landmark time
helper.si

Helper function
resam

Resampling for standard error estimation
pred.smooth.surv

Calculates the conditional probability of survival for control group values
R.opt.event

Calculates the proportion of the treatment effect (the difference in survival at time t) explained by surrogate outcome information observed up to the landmark time, using the optimal transformation of the surrogate
VTM

Repeats a row
WEIGHT

Weight function
ExampleData

Hypothetical data
WEIGHT.p

Weight function for resampling
R.t.estimate

Calculates the proportion of the treatment effect (the difference in restricted mean survival time at time t) explained by primary outcome information observed up to the landmark time
Kern.FUN

Calculates kernel matrix
censor.weight

Calculates censoring probability for weighting
R.q.event

Calculates the proportion of the treatment effect (the difference in restriced mean survival time at time t) explained by surrogate outcome information observed up to the landmark time
IV.event

Calculates the incremental value of the surrogate outcome information