get_sva_mods: Get model matrices for surrogate variable analysis

View source: R/diff_utils.R

get_sva_modsR 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.


alexvpickering/crossmeta documentation built on June 2, 2022, 7:06 a.m.