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

Description Usage Arguments Value

View source: R/helpers_adjust_batch.R

Description

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

Usage

1
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.


MMUPHin documentation built on April 9, 2021, 6:01 p.m.