| fit_P4_LRweighted_L1 | R Documentation |
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.
fit_P4_LRweighted_L1(
dat,
xnames = NULL,
lambda,
delta_bounds = DEFAULT_DELTA_BOUNDS,
full_fit = NULL,
nodelta_fit = NULL,
robust = FALSE,
eps = SMOOTH_EPS
)
dat |
A data frame from |
xnames |
Character vector of covariate names. If |
lambda |
Penalty strength ( |
delta_bounds |
Numeric vector of length 2 giving the
optimization interval for |
full_fit |
Optional pre-computed full Cox fit (output of an
internal helper). If |
nodelta_fit |
Optional pre-computed restricted (no-Z) Cox fit. |
robust |
Use robust (Lin-Wei) Cox standard errors. |
eps |
Smoothing parameter for |
A list of estimates and inference quantities, including the
likelihood ratio statistic LR0 and effective weight w.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.