diagnostic_adjust_batch: Diagnostic visualization for adj_batch function

View source: R/helpers_adjust_batch.R

diagnostic_adjust_batchR Documentation

Diagnostic visualization for adj_batch function

Description

Diagnostic visualization for adj_batch function

Usage

diagnostic_adjust_batch(feature_abd, feature_abd_adj, var_batch, gamma_hat,
  gamma_star, output)

Arguments

feature_abd

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

feature_abd_adj

feature-by-sample matrix of batch-adjusted feature abundances, with covariate effects retained and scales consistent with original abundance matrix.

var_batch

the batch variable (should be a factor).

gamma_hat

estimated per feature-batch gamma parameters.

gamma_star

shrinked per feature-batch gamma parameters

output

output file name

Value

(invisbly) the ggplot2 plot object


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