bin_bin_sens_stan: Binary (M) - binary (Y) sensitivity analysis

Description Usage Arguments Value

View source: R/bin_bin_sens_stan.R

Description

(Does collapsing of design matrices internally)

Usage

1
2
bin_bin_sens_stan(outcomes, designs, prior, u_ei = NULL,
  am_intx = NULL, mean_only = 1, ...)

Arguments

outcomes

List of named regression outcomes (named m and y)

designs

List of named design matrices (named x_m, x_y, x_u) - with exposure named a

prior

List of named prior means and variance-covariance matrices

u_ei

0/1 Whether u is assumed to be exposure-induced

am_intx

0/1 Whether exposure-mediation interaction is included in outcome model

mean_only

0/1 Whether to sample outcomes or use means for mediation qtys

...

Additional arguments passed to rstan::sampling

Value

an object of class 'stanfit' returned by 'rstan::sampling'


lcomm/rstanmed documentation built on Dec. 6, 2020, 9:11 a.m.