Fit a SPAmix null model from a survival response (Surv) with covariates or from precomputed residuals. Principal components (PCs) named in control$PC_columns are extracted; residual outliers are detected using an IQR rule with adjustable multiplier and stored for SPA testing.
Useful links