Fits a weighted Cox model using case/control weighting based on reference prevalence and identifies residual outliers for SPA testing. Optionally performs batch-effect QC by cross-referencing external allele frequencies.
fitNullModel.WtCoxG(
response,
designMat,
subjData,
control,
data,
GenoFile,
GenoFileIndex,
SparseGRMFile,
SurvTimeColumn,
IndicatorColumn,
...
)A list of class "WtCoxG_NULL_Model" with elements:
Martingale residuals from weighted Cox model.
Design matrix used in the null model (n x p).
Event indicator extracted from Surv.
Observation weights derived from reference prevalence.
Reference prevalence used to define weights.
Number of subjects.
Lists indices (0-based) and residual subsets for SPA.
Copy of control options used.
QC-derived marker metadata for batch-effect testing (if run).
Character vector of subject IDs.
survival::Surv response (time-to-event). Residuals are
not supported here.
Numeric matrix (n x p) of covariates.
Character vector of subject IDs aligned with rows of designMat.
List with fields such as OutlierRatio.
Data frame used for optional batch-effect QC.
Character. PLINK prefix (without extension) used when sampling markers for QC.
Character. Path to an index file used in QC workflow.
Character. Path to sparse GRM used in QC workflow.
Character. Column name in data containing survival time.
Character. Column name in data containing event indicator (0/1).
Optional named parameters forwarded to QC (e.g., RefAfFile).