summaryWO.formula: Win odds summary using formula syntax

View source: R/summaryWO_formula.R

summaryWO.formulaR Documentation

Win odds summary using formula syntax

Description

Win odds summary using formula syntax

Usage

## S3 method for class 'formula'
summaryWO(x, data, ...)

Arguments

x

an object of class formula.

data

a data frame.

...

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.

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

  • formula returning the specified formula in the x argument.

  • ref showing how the reference group was selected. Can be modifying by specifying the ref argument.

Examples

summaryWO(data = COVID19, GROUP ~ TRTP)
summaryWO(data = COVID19, GROUP ~ TRTP, GROUP = "GROUP", ref = "Placebo")

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