X and Y are continuous, they influence continuous S which predicts binary inclusion variable Z
simulate_y_structure( n, prop, or_sz, b_xy, rsq_xs, rsq_ys, vx = 1, vy = 1, vs = 1, sig.level = 5e-08 )
| n | Population sample size |
|---|---|
| prop | Proportion of population in sample |
| or_sz | Odds ratio for the effect of collider variable S on being included |
| b_xy | Causal effect of X on Y |
| rsq_xs | Variance explained by X on collider variable S |
| rsq_ys | Variance explained by Y on collider variable S |
| vx | Variance of X. Default = |
| vy | Variance of Y. Default = |
| vs | Variance of S. Default = |
| sig.level | Alpha threshold for power calculation. Default = |
List of simulation results