binary: Title

Description Usage Arguments Value Examples

View source: R/simulation2.R

Description

Title

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
binary(
  p = 10,
  size = 200,
  tc_m = 0.5,
  mc_m = 0.8,
  tc_o = 0.5,
  mc_o = 0.8,
  sigma_m = 0.5,
  sigma_o = 0.5
)

Arguments

size

is sample size

tc_m

coefficient of treatment in mediatior model

mc_m

coefficient of mediator in mediator model

tc_o

coefficient of treatment in outcome model

mc_o

coefficient of mediator in outcome model

sigma_m

variance of error in mediaor model

sigma_o

variance of error in outcome model

Value

a size-by-12 matrix

Examples

1

jiezhou-2/imediation documentation built on Dec. 21, 2021, 12:04 a.m.