Skip to contents

Estimate the indirrect effect of an exposure on the outcome

Usage

get_indirect_samples(results, K, warmup = 3000, path = NULL, ind = NULL)

Arguments

results

results from gibbs_wrapper

K

number of phenotypes

warmup

The length of warmup period. Default is 3000

path

A vector representing the pathway of interests

ind

index of indirect effect of interest if path is NULL

Value

A vector of posterior samples