Learn R Programming

pim (version 2.0.2)

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, ...)

Arguments

object

a pim or pim.summary object

...

currently ignored.

Value

a named vector with the coefficients.

Examples

Run this code
# NOT RUN {
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