Learn R Programming

hce (version 0.7.0)

summaryWO.data.frame: Win odds summary for a data frame

Description

Win odds summary for a data frame

Usage

# S3 method for data.frame
summaryWO(x, AVAL, TRTP, ref, GROUP = NULL, ...)

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 by GROUP.

  • WO calculated WO (win odds) and WP (win probability) and their standard errors.

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.

See Also

calcWO(), summaryWO(), summaryWO.data.frame() methods.

Examples

Run this code
summaryWO(x = HCE3, AVAL = "AVAL", TRTP = "TRTP", ref = "P", GROUP = "GROUP")

Run the code above in your browser using DataLab