cgPairedDifferenceFit
object.
"varianceTable"(fit, display = "print", ...)
cgPairedDifferenceFit
object, typically created by
fit.cgPairedDifferenceData
.
"print"
print
method for the
created cgPairedDifferenceVarianceTable
object, which is
a formatted text output of the table.
"none"
"show"
showDefault
method, which
will just print out the cgPairedDifferenceVatianceTable object components.
cgPairedDifferenceVarianceTable
, with the
following slots:
contents
expunitname
component of the
settings
slot of the cgPairedDifferenceFit
fit
object, if previously specified.
efficiency
settings
cgPairedDifferenceFit
fit
object. These are used
for the print.cgPairedDifferenceVarianceTable
method,
invoked for example when display="print"
.
contents
slot. The data frame consists of row.names
based on the
expunitname
component of the settings
slot in the
cgPairedDifferenceFit
fit
object. The first row
is for the "within" component, and the second is for the "between"
component. The "total" variance is in the third row of the table, the
sum of the between and within variance components. The
first column of the table is the variance components estimates, and
the third column is the square root of the variance components,
labeled Spread(StdDev)
. In the second column is the Percent
calculation of the two variance components relative to the total sum variance.The data frame structure of the efficiency table
from the classical least squares fit is
provided in the efficiency
slot. There are four rows and one column. All values are derived from
the variance components estimates in the contents
slot described above. The first row of Relative Efficiency
comes from dividing the total variance by the between experimental
unit variance component. The second row expresses the estimated gain in
sensitivity by using a paired difference design and analysis over
using a unpaired design and analysis. This is equal to the within
experimental unit variance component divided by the total variance,
and is expressed here as Percent Reduction
. The third row is
the number of experimental units based on the input data set paired
structure. The last row contains the estimated number of unpaired
design experimental units that would have been needed for the same
sensitivity. The label portion "experimental unit" in these last
two row names will be replaced by the expunitname
component of the
settings
slot of the cgPairedDifferenceFit
fit
object if previously specified.
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)
varianceTable(anorexiaFT.fit)
Run the code above in your browser using DataLab