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

View source: R/summaryWO_data_frame.R

summaryWO.data.frameR 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 by GROUP.

  • 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")

hce documentation built on Oct. 16, 2024, 9:06 a.m.