h_log_hr_est_via_score: Estimate Log Hazard Ratio via Score Function

View source: R/survival.R

h_log_hr_est_via_scoreR Documentation

Estimate Log Hazard Ratio via Score Function

Description

This function estimates the log hazard ratio by finding the root of the log-rank score function.

Usage

h_log_hr_est_via_score(score_fun, interval = c(-5, 5), ...)

Arguments

score_fun

(function) The log-rank score function to be used for estimation.

interval

(numeric) A numeric vector of length 2 specifying the interval in which to search for the root.

...

Additional arguments passed to score_fun.

Details

This deactivates the ties factor correction in the score function by passing use_ties_factor = FALSE to the score_fun.

Value

A list containing:

  • theta: The estimated log hazard ratio.

  • se: The standard error of the estimated log hazard ratio.

  • sigma_L2: The variance of the log-rank statistic.

  • n: The number of observations used in the calculation.


RobinCar2 documentation built on Sept. 9, 2025, 5:28 p.m.