get_gof_measures: Parametrical and non parametrical fit compare.

Description Usage Arguments Details Value

View source: R/get_gof_measures.R

Description

Compare flexsurv and survfit

Usage

1
get_gof_measures(KM_fit, m_flexsurvreg)

Arguments

KM_fit:

a survfit object

m_flexsurvreg:

a flexsurvreg object

Details

# Returns a data.frame with the columns fit_mse: The mean squared error of the linear model mse: average of the squared difference between rho_KM_flex: correlation between loglik: log likelihood of the model p_ks_test: p-value of the Kolmogorov-Smirnov test ks.test()

Value

: A data.table with the comparison results.


leonardommarques/reliabilitytools documentation built on Aug. 1, 2019, 8:03 p.m.