fit_shrink: A posteriori shrink per-batch location and scale parameters...

View source: R/helpers_adjust_batch.R

fit_shrinkR Documentation

A posteriori shrink per-batch location and scale parameters towards their EB priors

Description

A posteriori shrink per-batch location and scale parameters towards their EB priors

Usage

fit_shrink(s_data, l_params, batchmod, n_batch, l_ind, control)

Arguments

s_data

feature-by-sample matrix of standardized abundances.

l_params

list of parameter fits, as returned by fit_EB.

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.

control

list of control parameters (passed on to it_sol)

Value

list of shrinked per-batch location and scale parameters.


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