View source: R/fit_model_BinCont_copula.R View source: R/fit_model_SurvSurv.R
model_fit_measures | R Documentation |
This function returns several goodness-of-fit measures for a model fitted by
fit_model_SurvSurv()
. These are primarily intended for model selection.
model_fit_measures(fitted_model)
fitted_model |
returned value from |
The following goodness-of-fit measures are returned in a named vector:
tau_0
and tau_1
: (latent) value for Kendall's tau in the estimated
model.
log_lik
: the maximized log-likelihood value.
AIC
: the Aikaike information criterion of the fitted model.
a named vector containing the goodness-of-fit measures
library(Surrogate)
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)
model_fit_measures(ovarian_fitted)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.