Learn R Programming

cg (version 1.0-3)

varianceTable: Compute Variance Components

Description

Create a table of variances from a cg fit object.

Usage

varianceTable(fit, display = "print", ...)

Arguments

fit
A fit object created and prepared (see prepare) using the cg package.
display
One of three valid values:
"print"
The default value; It calls a print method for the created varianceTable object, which is a formatted text output of the table.

"none"
Supresses any printing. Useful, for example, when just assignment of the resulting object is desired.

"show"
Calls the default showDefault method, which will just print out the varianceTable components.

...
Additional arguments. Currently none are valid.

Value

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

See Also

varianceTable.cgPairedDifferenceFit

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(data=anorexiaFT.data)	
varianceTable(anorexiaFT.fit)

Run the code above in your browser using DataLab