Skip to contents

Estimate the indirrect effect of an exposure on the outcome

Usage

indirect_effect(
  results,
  K,
  warmup = 3000,
  path = NULL,
  quantiles = c(0.025, 0.5, 0.975)
)

Arguments

results

results from gibbs_wrapper

K

number of phenotypes

quantiles

A vector of quantiles of interests

warump

The length of warmup period. Default is 3000

Value

A K by K by 4 array of summary of direct effect.