gen_cluster_ids | R Documentation |
Generates simple default schools and districts IDs for individual students for the purpose of simulations. This assumes equal sized schools in equal sized districts.
This function is beyond the main scope of calculating power, and is instead used for simulating data. For more info on use, see the simulation vignette.
gen_cluster_ids(nbar, J, K)
nbar |
scalar; number of individuals per school. |
J |
scalar; number of schools per district. |
K |
scalar; number of districts. |
list; school and district assignments (S.id, D.id) for each individual.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.