Learn R Programming

DynNom (version 5.0.2)

getclass.DN: 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)

Value

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

Arguments

model

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

See Also

DynNom, DNbuilder

Examples

Run this code
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)

Run the code above in your browser using DataLab