construct_ind: Create indicator matrices for which feature/batch/samples to...

View source: R/helpers_adjust_batch.R

construct_indR Documentation

Create indicator matrices for which feature/batch/samples to adjust. This is relevant for zero_inflation is TRUE and only non-zero values are adjusted.

Description

Create indicator matrices for which feature/batch/samples to adjust. This is relevant for zero_inflation is TRUE and only non-zero values are adjusted.

Usage

construct_ind(feature_abd, n_batch, design, zero_inflation)

Arguments

feature_abd

feature-by-sample matrix of abundances (proportions or counts).

n_batch

number of batches in the data.

design

design matrix.

zero_inflation

zero inflation flag.

Value

list of indicator matrices needed by fitting in adjust_batch.


biobakery/MMUPHin documentation built on March 30, 2024, 4:50 a.m.