crrfit | R Documentation |
crr
model fit statisticsFunctions to assess the quality of fitted crr
and crr2
objects.
Select multiple types of Akaike or Bayesian (Schwarz) information
criterion from a crr
object to assess the relative
quality of models for a given data set.
extractIC(object, ic = c("AIC", "BIC", "AICc", "BICc"), p)
## S3 method for class 'crr'
extractAIC(fit, scale, k = 2, ...)
## S3 method for class 'crr'
AIC(object, ...)
## S3 method for class 'crr'
BIC(object, ...)
## S3 method for class 'crr'
logLik(object, ...)
## S3 method for class 'crr'
deviance(object, ...)
object |
an object of class |
ic |
information criterion, one of |
p |
an optional penalty term to be multiplied by, |
fit , scale , k |
see |
... |
additional arguments passed to or from other methods |
AIC
and BIC
are calculated in the usual way. AICc
is the AIC with a correction for finite sample sizes. This assumes that
the model is univariate, linear, and has normally-distributed residuals
(conditional upon regressors).
BICc
is a newly proposed criteria that is a modified BIC for
competing risks data subject to right censoring (Kuk, 2013).
Kuk D, Varadhan R. Model selection in competing risks regression. Stat Med. 2013 Aug 15;32.
crrFits
; crrwald.test
crrs <- crr2(Surv(futime, event(censored) == death) ~ age, transplant)
crr1 <- crrs[[1L]]
crr1$coef
coef(crr1)
coefficients(crr1)
extractAIC(crr1)
sapply(crrs, AIC)
## these are equivalent
extractIC(crrs[[1L]], p = 0)
-2 * logLik(crrs[[1]])[1]
-2 * crrs[[1]]$loglik
deviance(crr1)
crrFits(crr1)
crrwald.test(crr1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.