Learn R Programming

pim (version 2.0.4)

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

Description

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

Usage

coef(object, ...)

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

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

Value

a named vector with the coefficients.

Arguments

object

a pim or pim.summary object

...

currently ignored.

Examples

Run this code
data("FEVData")
Model <- pim(FEV~ Age + Smoke*Sex , data=FEVData)
coef(Model)
summ <- summary(Model)
coef(summ)

Run the code above in your browser using DataLab