Description Usage Arguments Value
X and Y are continuous, they influence continuous S which predicts binary inclusion variable Z
1 2 3 4 5 6 7 8 9 10 11 12 | 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.