cox_score_rhogamma: Cox score with rho-gamma weights

View source: R/weightedCox.R

cox_score_rhogammaR Documentation

Cox score with rho-gamma weights

Description

Calculates the Cox score statistic for weighted log-rank tests.

Usage

cox_score_rhogamma(
  beta,
  time,
  delta,
  z,
  w_hat = rep(1, length(time)),
  wt_rg = rep(1, length(time)),
  score_only = TRUE
)

Arguments

beta

Log hazard ratio parameter.

time

Numeric vector of event times.

delta

Numeric vector of event indicators.

z

Numeric vector of group indicators.

w_hat

Numeric vector of weights.

wt_rg

Numeric vector of rho-gamma weights.

score_only

Logical; if TRUE, returns only the score.

Value

Numeric value of the score or a list with additional results.


weightedsurv documentation built on Dec. 23, 2025, 1:07 a.m.