Estimation statistics for numeric correlation on a list_phyloseq
Source:R/estim_lpq.R
estim_cor_lpq.RdApplies estim_cor_pq() to each phyloseq object in a list_phyloseq
and combines the results.
Arguments
- x
(required) A list_phyloseq object.
- variable
(character, required) The name of a numeric column in
sample_data. Must be present in all phyloseq objects.- ...
Additional arguments passed to
estim_cor_pq().- verbose
(logical, default TRUE) If TRUE, print progress messages.
Value
A list of class "estim_cor_lpq_result" with components:
- results
A named list of
estim_cor_pq_resultobjects (one per phyloseq)- correlations
A tibble combining all correlations with an additional
namecolumn- regressions
A tibble combining all regressions with an additional
namecolumn
Examples
if (FALSE) { # \dontrun{
lpq <- list_phyloseq(
list(
fungi = data_fungi,
fungi_clust = postcluster_pq(data_fungi)
),
same_bioinfo_pipeline = FALSE
)
# Assuming a numeric variable exists in sample_data
results <- estim_cor_lpq(lpq, variable = "lib_size")
results$correlations
} # }