extractIC: Extracting Information Criteria for MPR models.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/extractIC.R

Description

This function extracts the Akaike Information Criterion (AIC) or Bayesian Information Criterion (BIC) from a fitted mpr model.

Usage

1
extractIC(object, aic = TRUE)

Arguments

object

fitted mpr model.

aic

logical. If TRUE, AIC is extracted. If FALSE, BIC is extracted.

Value

The AIC or BIC value.

Author(s)

Kevin Burke.

See Also

mpr, addterm, dropterm.

Examples

1
2
3
4
5
6
7
8
# Veterans' administration lung cancer data
data(veteran, package="survival")
head(veteran)

mod1 <- mpr(Surv(time, status) ~ list(~ trt, ~ trt), data=veteran, family="Weibull")
mod1
extractIC(mod1) # AIC
extractIC(mod1, aic=FALSE) # BIC

mpr documentation built on May 29, 2017, 9:03 a.m.

Related to extractIC in mpr...