Learn R Programming

cg (version 1.0-4)

show.cgPairedDifferenceSampleSizeTable: Show a Paired Difference Sample Size Table object from the cg package

Description

Show a cgPairedDifferenceSampleSizeTable object, which contains a table of sample size estimates based on a cgPairedDifferenceFit object.

Usage

# S4 method for cgPairedDifferenceSampleSizeTable
show(object)

Value

show.cgPairedDifferenceSampleSizeTable returns

invisible. The main purpose is the side effect of printing the whole object to the current output connection, which is typically the console.

Arguments

object

A cgPairedDifferenceSampleSizeTable object, typically created by
samplesizeTable.cgPairedDifferenceFit.

Author

Bill Pikounis [aut, cre, cph], John Oleynick [aut], Eva Ye [ctb]

Details

The object is shown using showDefault. See cgPairedDifferenceSampleSizeTable for details of the object slots.

See Also

cgPairedDifferenceSampleSizeTable, showDefault

Examples

Run this code
data(anorexiaFT)
anorexiaFT.data <- prepareCGPairedDifferenceData(anorexiaFT, format="groupcolumns",
                                                 analysisname="Anorexia FT",
                                                 endptname="Weight",
                                                 endptunits="lbs",
                                                 expunitname="Patient",
                                                 digits=1,
                                                 logscale=TRUE)
anorexiaFT.fit <- fit(anorexiaFT.data)

## Recall the interest is in increased weight for the anorexia FT
## (family treatment) group of patients
show(samplesizeTable(anorexiaFT.fit, direction="increasing",
                     mmdvec=c(5, 10, 15, 20), display="none"))

Run the code above in your browser using DataLab