Learn R Programming

GRAB (version 0.2.4)

fitNullModel.POLMM: Fit POLMM null model for ordinal outcomes

Description

Initializes the POLMM null model from an ordered categorical response and covariate matrix, preparing C++ state for subsequent marker/region tests.

Usage

fitNullModel.POLMM(
  response,
  designMat,
  subjData,
  control,
  optionGRM,
  GenoFile,
  GenoFileIndex,
  SparseGRMFile
)

Value

An object of class "POLMM_NULL_Model" representing the initialized null model; state is stored in C++ and not intended for direct element-wise access from R.

Arguments

response

Ordered factor response (lowest level coded as 0 internally).

designMat

Numeric covariate matrix or data.frame (n x p).

subjData

Character vector of subject IDs aligned with rows of designMat and response.

control

List of POLMM options (e.g., tau, maxMissingVarRatio, minMafVarRatio).

optionGRM

Character, either "DenseGRM" or "SparseGRM".

GenoFile

Character, path to genotype file (PLINK or BGEN format).

GenoFileIndex

Character or NULL, path to genotype index files. If NULL, uses same prefix as GenoFile.

SparseGRMFile

Character or NULL, path to sparse GRM file. If provided, sparse GRM is used; otherwise dense GRM is constructed.