prepareCGPairedDifferenceData reads in a data frame and
settings
in order to create a
cgPairedDifferenceData object. The created object is designed to have exploratory and
fit methods applied to it.prepareCGPairedDifferenceData(dfr, format = "listed", analysisname = "",
endptname = "", endptunits = "", logscale = TRUE, zeroscore = NULL,
addconstant = NULL, digits = NULL, expunitname= "",
refgrp = NULL, stamps = FALSE)format argument."listed". Either "listed" or
"groupcolumns"
must be used. Abbreviations of "l" or "g", respectively,
or otherwise sufficient matching values can be used:
""."".TRUE.logscale=TRUE) is specified. The deflogscale=TRUE is desired. The default value is
NULL."".NULL,
which will just use the first level determined in the data fraFALSE.cgPairedDifferenceData object is returned, with the following slots:dfr argument in the function call.regfrp column of values is the subtrahend (second term) in the subtraction.preparedata(anorexiaFT)
anorexiaFT.data <- prepareCGPairedDifferenceData(anorexiaFT, format="groupcolumns",
analysisname="Anorexia FT",
endptname="Weight",
endptunits="lbs",
expunitname="Patient",
digits=1, logscale=TRUE)Run the code above in your browser using DataLab