Learn R Programming

cg (version 0.9.0)

descriptiveTable: Compute Descriptive Summary Statistics of Groups

Description

Create a table of quantiles and other summary statistics of the data in a cg data object.

Usage

descriptiveTable(data, display = "print", ...)

Arguments

data
A data object created and prepared (see prepare) using the cg package. The only class of object currently valid is cgOneFactorData
display
One of three valid values: [object Object],[object Object],[object Object]
...
Additional arguments. Currently only one is valid: [object Object]

Value

  • A method-specific descriptiveTable object is returned. See the specific methods for discussion of return values.

concept

  • exploratory
  • descriptive

See Also

descriptiveTable.cgOneFactorData

Examples

Run this code
data(canine)
canine.data <- prepareCGOneFactorData(canine, format="groupcolumns",
                                      analysisname="Canine",
                                      endptname="Prostate Volume",
                                      endptunits=expression(plain(cm)^3),
                                      digits=1, logscale=TRUE, refgrp="CC")
descriptiveTable(canine.data)

## Censored Data
data(gmcsfcens)
gmcsfcens.data <- prepareCGOneFactorData(gmcsfcens, format="groupcolumns",
                                         analysisname="cytokine",
                                         endptname="GM-CSF (pg/ml)",
                                         logscale=TRUE)
descriptiveTable(gmcsfcens.data)

Run the code above in your browser using DataLab