category | R Documentation |
This function creates a new weighting category.
category(name, groups, targets)
name |
The name of the weighting category matching the name of the corresponding variable in the data to be weighted. |
groups |
A vector of the groups in the weighting category. |
targets |
A vector of the desired proportions of the |
A list
with the class of "category"
.
category(
name = "vs",
groups = c(0, 1),
targets = c(1/3, 2/3)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.