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 |
Z |
An |
fun |
User-specified win function for pairwise comparison.
It takes two arguments |
sfun |
The scoring function used in pseudo-efficient estimation.
The default is to take the row means of |
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 |
l |
Number of Newton-Raphson iterations. |
beta_nv |
Naive (non-pseudo-efficient) estimates of |
se_nv |
Estimated standard errors for |
n |
Sample size |
Nwl |
Number of comparable pairs (those with a win and loss)
out of the |
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)