fit_EB: Parametric estimation of per-batch location and scale...

View source: R/helpers_adjust_batch.R

fit_EBR Documentation

Parametric estimation of per-batch location and scale parameters, and Empirical Bayes estimation of their priors

Description

Parametric estimation of per-batch location and scale parameters, and Empirical Bayes estimation of their priors

Usage

fit_EB(s_data, l_stand_feature, batchmod, n_batch, l_ind)

Arguments

s_data

feature-by-sample matrix of standardized abundances.

l_stand_feature

list of per-feature standardization fits, as returned by fit_stand_feature.

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

list of parameter estimations.


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