TwoSample.Constant.LR: Function to compute calibration constants for the two-sample...

View source: R/TwoSample.Constant.LR.R

TwoSample.Constant.LRR Documentation

Function to compute calibration constants for the two-sample generalized log-rank statistics.

Description

Computes two quantities used for power/effect-size calibration of the two-sample generalized log-rank statistics. The function evaluates the generalized log-rank statistics up to a fixed event-time horizon tau = 3, then returns (i) an integral \int_0^{\tau} K_{LR}(t)\, d\mu_1(t) based on the control group mean-frequency increment and (ii) the asymptotic variance of the integrated statistic.

Usage

TwoSample.Constant.LR(data)

Arguments

data

A data frame generated by TwoSamaple.generate.sequential().

Value

A numeric vector of length 2:

  • The calibration constant power.const. Defined as the integral of the generalized log-rank statistics' weight function times the control group's mean frequency increment over [0,3].

  • The estimated asymptotic variance of the integrated two-sample generalized log-rank statistics over [0,3].


gsMeanFreq documentation built on Feb. 17, 2026, 1:07 a.m.