summarize_trace: Summarize the results of BRACoD

Description Usage Arguments Value Examples

View source: R/BRACoD.R

Description

This summarizes the trace object that run_bracod() returns. It returns a dataframe that contains two parameters of interest, the average inclusion (p) and the average coefficient (beta), telling you the association between that bacteria and the environmental variable

Usage

1
summarize_trace(trace, bug_names = NULL, cutoff = 0.3)

Arguments

trace

the pymc3 object that is the output of run_bracod()

bug_names

optional, a list of names of the bacteria to include in the results

cutoff

this is the cutoff on the average inclusion for inclusion

Value

a dataframe with information about the bacteria that BRACoD identified

Examples

1
2
3
4
5
## Not run: 
trace <- run_bracod(sim_relab, sim_y, n_sample = 1000, n_burn=1000, njobs=4)
df_summary <- summarize_trace(trace, colnames(sim_relab))

## End(Not run)

BRACoD.R documentation built on May 17, 2021, 9:09 a.m.