fit_P4_LRweighted_L1: Likelihood-ratio-weighted L1 penalty (P4)

View source: R/fit_methods.R

fit_P4_LRweighted_L1R Documentation

Likelihood-ratio-weighted L1 penalty (P4)

Description

Implements p_\lambda(\delta) = \lambda |\delta| \exp\{-\tfrac{1}{2} LR(\delta = 0)\}, where LR(\delta = 0) is the likelihood ratio statistic for testing the null of no population drift. Borrowing is downweighted when external data conflict strongly with internal controls.

Usage

fit_P4_LRweighted_L1(
  dat,
  xnames = NULL,
  lambda,
  delta_bounds = DEFAULT_DELTA_BOUNDS,
  full_fit = NULL,
  nodelta_fit = NULL,
  robust = FALSE,
  eps = SMOOTH_EPS
)

Arguments

dat

A data frame from simulate_hybrid_cox or conforming to its column conventions.

xnames

Character vector of covariate names. If NULL, automatically detected.

lambda

Penalty strength (\lambda \ge 0).

delta_bounds

Numeric vector of length 2 giving the optimization interval for \delta.

full_fit

Optional pre-computed full Cox fit (output of an internal helper). If NULL, the fit is computed.

nodelta_fit

Optional pre-computed restricted (no-Z) Cox fit.

robust

Use robust (Lin-Wei) Cox standard errors.

eps

Smoothing parameter for |\delta|_\varepsilon.

Value

A list of estimates and inference quantities, including the likelihood ratio statistic LR0 and effective weight w.


fdb documentation built on Oct. 4, 2026, 5:07 p.m.