add_back_covariates {MMUPHin} | R Documentation

## Add back covariate effects to batch-corrected feature abundance data

### Description

Add back covariate effects to batch-corrected feature abundance data

### Usage

    add_back_covariates(adj_data, l_stand_feature, l_ind)

### Arguments

`adj_data` | feature-by-sample matrix of batch-adjusted feature abundances (but without covariate effects), as returned by relocate_scale.
`l_stand_feature` | list of per-feature standardization fits, as returned by fit_stand_feature.
`l_ind` | list of indicator matrices, as returned by construct_ind.

### Value

feature-by-sample matrix of batch-adjusted feature abundances with covariate effects retained.

[Package MMUPHin version 1.0.0 Index]