Extract.pim.summary {pim} | R 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 |
object from which to extract element(s) or in which to replace element(s). |
i |
indices specifying elements to extract or replace. Indices are
For When indexing arrays by An index value of |
j |
see i |
drop |
For matrices and arrays. If |
Value
the selected matrix
Examples
data(FEVData)
Model <- pim(FEV~ Smoke*Sex , data=FEVData)
thesummary <- summary(Model)
thesummary[,2:3]
thesummary["Sex"]