get_sva_mods {crossmeta} | R Documentation

## Get model matrices for surrogate variable analysis

### Description

Used by `add_adjusted` to create model matrix with surrogate variables.

### Usage

    get_sva_mods(pdata)

### Arguments

`pdata` | `data.frame` of phenotype data with column `'group'` and `'pair'` (optional).

### Value

List with model matrix(mod) and null model matrix (mod0) used for `sva`.

[Package crossmeta version 1.20.0 Index]