coef: Extract the coefficients from a pim or pim.summary object

Description Usage Arguments Value Examples

Description

This function works like coef from the stats package. It extracts the coefficients from the objects.

Usage

1
2
3
4
5
6
7
coef(object, ...)

## S4 method for signature 'pim'
coef(object, ...)

## S4 method for signature 'pim.summary'
coef(object, ...)

Arguments

object

a pim or pim.summary object

...

currently ignored.

Value

a named vector with the coefficients.

Examples

1
2
3
4
5
data("FEVData")
Model <- pim(FEV~ Age + Smoke*Sex , data=FEVData)
coef(Model)
summ <- summary(Model)
coef(summ)

pim documentation built on May 2, 2019, 6:51 p.m.