Usage
prepareCGOneFactorData(dfr, format = "listed", analysisname = "",
endptname = "", endptunits = "", logscale = TRUE, zeroscore = NULL,
addconstant = NULL, rightcensor = NULL, leftcensor = NULL, digits = NULL,
refgrp = NULL, stamps = FALSE)
Arguments
dfr
A valid data frame, see the format argument.
format
Default value of "listed". Either "listed" or
"groupcolumns"
must be used. Abbreviations of "l" or "g", respectively,
or otherwise sufficient matching values can be used:
analysisname
Optional, a character text or
math-valid expression that will be set for
default use in graph title and table methods. The default
value is the empty "".
endptname
Optional, a character text or math-valid expression
that will be set for default use as the y-axis label of graph
methods, and also used for table methods. The default
value is the empty "".
endptunits
Optional, a character text or math-valid
expression that can be used in combination with the endptname
argument.
Parentheses are
automatically added to this input, which will be added to the end
of the endptname character
logscale
Apply a log-transformation to the data for
evaluations. The default value is TRUE.
zeroscore
Optional,
replace response values of zero with a derived or specified
numeric value, as an approach to overcome the presence of zeroes
when evaluation in the
logarithmic scale (logscale=TRUE) is specified. The def
addconstant
Optional,
add a numeric constant to all response values, as an
approach to overcome the presence of zeroes when evaluation in the
logarithmic scale logscale=TRUE is desired. The default value is
NULL.
rightcensor
Optional, can be specified with a numeric
value where any value equal to or greater will be regarded as
right censored in the evaluation. The value of TRUE can be
used to coerce a binary status variable in the data fra
leftcensor
Optional, can be specified with a numeric
value where any value equal to or lesser will be regarded as
left censored in the evaluation. The value of TRUE can be
used to coerce a binary status variable in the data frame
digits
Optional, for output display purposes in graphs
and table methods, values will be rounded to this numeric
value. Only the integers of 0, 1, 2, 3, and 4 are accepted. No
rounding is done during any calculations. The default value is
refgrp
Optional, specify one of the factor levels to be the
reference group, such as a control group.
The default value is NULL,
which will just use the first level determined in the data fra
stamps
Optional, specify a time stamp in graphs, along
with cg package
version identification. The default value is FALSE.