Description Usage Arguments Value See Also Examples
Function called from generic function AIC in stats when the argument is epifit object.
1 2 |
object |
a fitted epifit object. |
... |
not used in this version, only for compatibility purpose with generic function |
k |
numeric, the penalty per parameter to be used; the default |
a numeric AIC value.
AIC
.
1 2 3 4 5 6 7 8 9 | library(survival)
# The simplest test data set from coxph function
test1 <- list(time=c(4,3,1,1,2,2,3),
status=c(1,1,1,0,1,1,0),
x=c(0,2,1,1,1,0,0),
sex=c(0,0,0,0,1,1,1))
AIC(coxph(Surv(time,status)~x + strata(sex), data=test1))
modelexpr <- "cox(time,status)/strata(sex)~exp(beta*x)"
AIC(epifit(modelexpr=modelexpr, data=test1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.