View source: R/goodness_of_fit_SurvSurv.R
marginal_gof_plots_scr | R Documentation |
The marginal_gof_plots_scr()
function plots the estimated marginal survival
functions for the fitted model. This results in four plots of survival
functions, one for each of S_0
, S_1
, T_0
, T_1
.
marginal_gof_plots_scr(fitted_model, grid)
fitted_model |
Returned value from |
grid |
grid of time-points for which to compute the estimated survival functions. |
data("Ovarian")
#For simplicity, data is not recoded to semi-competing risks format, but is
#left in the composite event format.
data = data.frame(
Ovarian$Pfs,
Ovarian$Surv,
Ovarian$Treat,
Ovarian$PfsInd,
Ovarian$SurvInd
)
ovarian_fitted =
fit_model_SurvSurv(data = data,
copula_family = "clayton",
n_knots = 1)
grid = seq(from = 0, to = 2, length.out = 50)
Surrogate:::marginal_gof_plots_scr(ovarian_fitted, grid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.