Description Usage Arguments Value
Simulates potential outcomes and adds a treatment variable
1 2 | simulate_simple_experiment(n, prob_treatment = 0.5,
seed = sample.int(.Machine$integer.max, 1))
|
n |
number of individuals |
prob_treatment |
probability of treatment |
seed |
integer value for random seed |
data.table with potential outcomes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.