Skip to contents

A generic function for extracting model information

Usage

# S3 method for class 'glm'
modelExtract(CFM)

Arguments

CFM

a model of class 'glm'

Value

a list of extracted model components. Included are

  • mod_class: The class of the model object

  • terms: The terms included in the model

  • cov_cls: The classes of the model covariates

  • cov_lev: The levels of categorical variables

  • cov_co: covariate coefficients

  • sig: variance-covariance matrix

  • form: model formula

  • family: model family

  • out.nm: outcome covariates names

Details

A function for extracting the model information required for using pscfit