calcWINS.data.frame {hce}R Documentation

Win statistics calculation using a data frame

Description

Win statistics calculation using a data frame

Usage

## S3 method for class 'data.frame'
calcWINS(x, AVAL, TRTP, ref, alpha = 0.05, WOnull = 1, ...)

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.

alpha

2-sided significance level. The default is 0.05.

WOnull

the null hypothesis. The default is 1.

...

additional parameters.

Value

a list containing win statistics and their confidence intervals. It contains the following named data frames:

References

The theory of win statistics is covered in the following papers.

See Also

calcWINS(), calcWINS.hce(), calcWINS.formula().

Examples

calcWINS(x = COVID19b, AVAL = "GROUP", TRTP = "TRTP", ref = "Placebo")

[Package hce version 0.6.0 Index]