regWO.data.frame {hce}R Documentation

Win Odds Regression Using a Data Frame

Description

This function performs regression analysis for the win odds using a single numeric covariate.

Usage

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

Arguments

x

a data frame containing subject-level data.

AVAL

a variable in the data with ordinal analysis values.

TRTP

the treatment variable in the data.

COVAR

a numeric covariate.

ref

the reference treatment group.

alpha

the significance level, with a default value of 0.05.

WOnull

the null hypothesis value for win odds. The default is 1.

...

additional parameters.

Value

a data frame containing the calculated win odds and its confidence interval, including:

References

Gasparyan SB et al. (2021) "Adjusted win ratio with stratification: calculation methods and interpretation." Statistical Methods in Medical Research 30.2: 580-611. doi:10.1177/0962280220942558.

See Also

regWO(), regWO.formula().

Examples

# A baseline covariate that is highly correlated with the outcome
set.seed(2023)
dat <- COVID19
n <- nrow(dat)
dat$Severity <- ifelse(dat$GROUP > 4, rnorm(n, 0), rnorm(n, 100))
tapply(dat$Severity, dat$TRTP, mean)
regWO(x = dat, AVAL = "GROUP", TRTP = "TRTP", COVAR = "Severity", ref = "Placebo")
# Without adjustment
calcWO(x = dat, AVAL = "GROUP", TRTP = "TRTP", ref = "Placebo")

[Package hce version 0.7.2 Index]