wreg {poset}R Documentation

Win ratio regression analysis

Description

Fit a multiplicative win-ratio regression model to partially ordered response against covariates.

Usage

wreg(Y, Z, fun = NULL, sfun = NULL, ep = 1e-06)

Arguments

Y

An n\times K matrix for K-variate response data on n subjects. The entries must be numeric. For pseudo-efficient estimation (without specifying sfun), the average score across components (row means) should be compatible with the partial order (i.e., preserve the same order for any two comparable and ordered elements).

Z

An n\times p design matrix for covariates.

fun

User-specified win function for pairwise comparison. It takes two arguments y_1 and y_0 (both K-vectors) and returns 1 if y_1 wins, -1 if y_0 wins, and 0 if tied. The default is wprod for the product order of multivariate ordinal data.

sfun

The scoring function used in pseudo-efficient estimation. The default is to take the row means of Y.

ep

Convergence criterion in Newton-Raphson algorithm. The default is 1e-6.

Value

An object of class wreg with the following components:

beta

A vector of estimated regression coefficients.

var

Estimated covariance matrix for beta

l

Number of Newton-Raphson iterations.

beta_nv

Naive (non-pseudo-efficient) estimates of beta.

se_nv

Estimated standard errors for beta_nv.

n

Sample size n of input data with non-missing values.

Nwl

Number of comparable pairs (those with a win and loss) out of the n(n-1)/2 possible ones.

References

Mao, L. (2024). Win ratio for partially ordered data. Statistica Sinica, Under revision.

See Also

wprod, print.wreg, summary.wreg.

Examples

head(liver)
# regress bivariate ratings against covariates
Y <- 5 - liver[, c("R1NASH", "R2NASH")] # lower score is better
Z <- cbind("Female" = liver$Sex == "F",
           liver[, c("AF", "Steatosis",   "SSF2",  "LSN")]) # covariates
obj <- wreg(Y, Z) # fit model
obj
summary(obj)

[Package poset version 1.0.0 Index]