coeff.extract: Coefficient extractor for fitted models.

Description Usage Arguments Details Value Author(s)

Description

Tool to extract coefficients and standard errors from different fitted model objects, and return them in a standard format.

Usage

1
2
## Default S3 method:
coeff.extract(object)

Arguments

object

a fitted model object.

Details

coeff.extract is a generic function to extract a two column data frame with columns “Estimate” and “Std Error”, and one row for each coefficient in the fitted model object.

The default method simply packages the values returned by using the generic functions coef() and vcov(). It therefore works for all classes that these methods work for, including lm, glm, and coxph.

Written as a generic function so that other fitted model objects might be handled.

Value

A data frame with two variables, always named “Estimate” and “Std. Error”. Row names indicate model terms.

Author(s)

Toby Johnson Toby.x.Johnson@gsk.com


tobyjohnson/gtx documentation built on Aug. 30, 2019, 8:07 p.m.