relocate_scale {MMUPHin} | R Documentation

## Relocate and scale feature abundances to correct for batch effects, given shrinked per-batch location and scale parameters

### Description

Relocate and scale feature abundances to correct for batch effects, given shrinked per-batch location and scale parameters

### Usage

    relocate_scale(s_data, l_params_shrink, batchmod, n_batch, l_ind)

### Arguments

`s_data` | feature-by-sample matrix of standardized abundances.
`l_params_shrink` | list of shrinked parameters, as returned by fit_shrink.
`batchmod` | design matrix for batch variables.
`n_batch` | number of batches in the data.
`l_ind` | list of indicator matrices, as returned by construct_ind.

### Value

feature-by-sample matrix of batch-adjusted feature abundances (but without covariate effects).

[Package MMUPHin version 1.0.0 Index]