Learn R Programming

pim (version 2.0.4)

Extract.pim.summary: Extract method for pim.summary objects

Description

This method allows to extract data directly from a pim.summary object. It's exactly the same as extracting from as.matrix(thesummary).

Usage

# S4 method for pim.summary
[(x, i, j, drop = TRUE)

Value

the selected matrix

Arguments

x

a pim.summary object to extract information from.

i

indices specifying row to extract or replace. They are used in the same way as you woul after transforming x to a matrix.

j

see i, but for columns

drop

see Extract

Examples

Run this code
data(FEVData)
Model <- pim(FEV~ Smoke*Sex , data=FEVData)

thesummary <- summary(Model)
thesummary[,2:3]
thesummary["Sex"]

Run the code above in your browser using DataLab