View source: R/make_fake_data.R
make.randomized.compliance.dat | R Documentation |
This will generate and randomize a science table to get observed outcomes and treatment assignment
make.randomized.compliance.dat(
n,
p = 0.6,
science.table.generator = make.linear.data,
include.POs = TRUE,
...
)
n |
Sample size |
p |
Proportion treated |
science.table.generator |
Method to generate potential outcomes |
include.POs |
Preserve potential outcomes in returned value |
... |
To be passed to science.table.generator |
Data frame with data randomized to tx and control, and compliers, etc.
make.randomized.dat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.