Learn R Programming

pairwiseCI (version 0.1-27)

as.data.frame.pairwiseMEP: Coerce pairwiseMEP objects to data.frames

Description

Coerces the output of the function pairwiseMEP to a data.frame.

Usage

# S3 method for pairwiseMEP
as.data.frame(x, row.names = NULL,
 optional = FALSE, whichep = NULL, ...)

Arguments

x

an object of class “pairwiseMEP” as can be obtained by calling pairwiseMEP

row.names

as in as.data.frame

optional

as in as.data.frame

whichep

a vector of integers or character strings, indexing which endpoints (which response variables) from object x shall be coerced to a data.frame; if omitted (default), all endpoints are coerced to a data.frame

Further arguments to be passed to as.data.frame

Value

A data.frame with columns

estimate

numeric, the point estimates

lower

numeric, the lower confidence limits

upper

numeric, the upper confidence limits

comparison

character, the name of the groupwise comparison

by

optional, character, the name of subset of the original data.frame

response

character, the name of the response variable

method

character, the name of the method used for calculation of the lower and upper limits, see pairwiseMEP