Learn R Programming

psc (version 1.2.0)

modelExtract.glm: A generic function for extracting model information

Description

A generic function for extracting model information

Usage

# S3 method for glm
modelExtract(CFM)

Value

a list of extracted model components. Included are

  • model.frame a dataset of the covareits used to create the model

  • cov_co: covariate coefficients

  • sig: variance-covariance matrix

  • form: model formula

  • family: model family

  • out.nm: outcome covariates names

Arguments

CFM

a model of class 'glm'

Details

A function for extracting the model information required for using pscfit