Description Usage Arguments Value
Check that the ratio, strata, and treated indicator provided to generate_qs()
are in the correct forms and that the desired ratio is feasible
across the population.
1 | verify_inputs_EMD(ratio, st, z, treated = 1)
|
ratio |
a numeric or vector specifying the desired ratio of controls to 'treated' in
each stratum. If there is one control group and all treated units should be included,
this can be a numeric. Otherwise, this should be
a vector with one entry per treatment group, in the same order as the levels of
|
st |
a stratum vector with the |
z |
a factor with the |
treated |
which treatment value should be considered the treated units. This
must be one of the values of |
No return value. If there is a problem with the inputs to generate_qs()
,
an error is raised.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.