Skip to contents

This is the main function in the blendR package. Two survival curves are supplied and blended according to the blending distribution characterised by the blending interval and the beta distribution parameters.

Usage

blendsurv(
  obs_Surv,
  ext_Surv,
  blend_interv,
  beta_params = list(alpha = 3, beta = 3),
  times = NULL,
  nsim = 100
)

Arguments

obs_Surv, ext_Surv

Observed and external data survival curves. These can come from survHE, INLA or flexsurv fits.

blend_interv

Maximum and minimum values for the blending interval.

beta_params

coefficients of a beta distribution

times

A vector of times for which the survival curves are to be computed; optional

nsim

The number of simulations from the distribution of the survival curves; default 100

Value

List of S for observed, external and blended curves.