summaryWO.data.frame {hce} | R Documentation |
Win odds summary for a data frame
Description
Win odds summary for a data frame
Usage
## S3 method for class 'data.frame'
summaryWO(x, AVAL, TRTP, ref, GROUP = NULL, ...)
Arguments
x |
a data frame containing subject-level data. |
AVAL |
variable in the data with ordinal analysis values. |
TRTP |
the treatment variable in the data. |
ref |
the reference treatment group. |
GROUP |
an optional variable for grouping. |
... |
additional parameters. |
Value
a list containing the summary of wins, losses, and ties. It contains the following named objects:
summary a data frame containing number of wins, losses, and ties by treatment group and the overall number of comparisons.
summary_by_GROUP (if
GROUP
variable is specified) a summary data frame byGROUP
.WO calculated WO (win odds) and WP (win probability) and their standard errors.
See Also
calcWO()
, summaryWO()
, summaryWO.data.frame()
methods.
Examples
summaryWO(x = HCE3, AVAL = "AVAL", TRTP = "TRTP", ref = "P", GROUP = "GROUP")
[Package hce version 0.6.0 Index]