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

Extract.pim.summaryR Documentation

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 signature 'pim.summary'
x[i, j, drop = TRUE]

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

Value

the selected matrix

Examples

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

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


pim documentation built on April 3, 2025, 9:30 p.m.