getclass.DN: Extract class and family of a model object

View source: R/getclass-DN.R

getclass.DNR Documentation

Extract class and family of a model object

Description

getclass.DN extracts class and family of a model object (supported in DynNom).

Usage

getclass.DN(model)

Arguments

model

an lm, glm, coxph, ols, Glm, lrm, cph, mgcv::gam or gam::gam model objects.

Value

A list including the model class and the family name of the model (if relevant).

See Also

DynNom, DNbuilder

Examples

fit1 <- glm(Survived ~ Age + Class + Sex, data = as.data.frame(Titanic),
  weights = Freq, family = binomial("probit"))
getclass.DN(fit1)

library(survival)
fit2 <- coxph(Surv(time, status) ~ age + strata(sex) + ph.ecog, data = lung)
getclass.DN(fit2)

DynNom documentation built on Sept. 9, 2022, 5:06 p.m.

Related to getclass.DN in DynNom...