View source: R/gen_multilevel_data.R
rerandomize_data | R Documentation |
Permute the treatment vector Z within site ID. Useful for simulations of finite sample inference where the dataset should be held static and only randomization is necessary.
rerandomize_data(dat)
dat |
Dataframe from, e.g., generate_multilevel_data() that has two columns, 'sid', and 'Z'. |
Same dataframe with treatment shuffled and Yobs recalculated.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.