Extracts the constraint structure (active set, sharing pattern, prior constraints) from a penalized coxtrans fit, encodes them as hard constraints via a link matrix, and solves an unpenalized stratified Cox model in the reparametrized space. Returns debiased MLE coefficients and valid standard errors for target-group features.
Value
An object of class refit.coxtrans with components:
- coefficients
Matrix (p x 5) with columns
coef,exp(coef),se(coef),z,Pr(>|z|). Rows correspond to original features; inactive features have all zeros exceptPr(>|z|)= 1.- coxph_fit
The underlying
coxphobject, orNULL.- n
Total number of observations used in refit.
- nevent
Number of events.
- active_set
Integer vector of active feature indices.
Details
The refit procedure:
Build the link matrix \(L\) from the penalized fit, encoding shared coefficients, prior constraints, and group-specific parameters.
Construct reparametrized design \(Z = \mathrm{bdiag}(X_1, \ldots, X_K) L_{[:, \text{nonzero}]}\).
Fit
coxph(Surv ~ Z + strata(group))— unpenalized stratified Cox with hard constraints built into the design.Map estimates back to target coefficients via \(L\), compute standard errors via delta method.