Computes martingale residuals (or uses provided residuals) and an empirical cumulant generating function (CGF) for SPA-based single-variant tests.
fitNullModel.SPACox(response, designMat, subjData, control, ...)A list of class "SPACox_NULL_Model" with elements:
Number of subjects.
Martingale residuals (numeric vector).
CGF grid as a matrix with columns t, K0, K1, K2.
Transpose of design matrix with intercept (p+1 x n).
Status/event indicator or residual-based response.
Projection helper: X %% solve(t(X) %% X).
Character vector of subject IDs.
Either a survival::Surv object (time-to-event) or a
numeric residual vector with class "Residual".
Numeric design matrix (n x p) of covariates.
Vector of subject IDs aligned with rows of designMat.
List with fields such as range and length.out
for the CGF grid.
Extra arguments passed to survival::coxph when
response is Surv.