Description Usage Arguments Value
View source: R/generate_random_weights.R
Generating random weights to use in matching procedures, each summing to one.
1 2 3 4 5 6 | generate_random_weights(
prior_weights,
number_vectors,
minimum_weights = NULL,
hierarchical_list = NULL
)
|
prior_weights |
Must be equal to the length of your columns, i.e. the length of the weight vectors this function will produce. |
number_vectors |
How many weight vectors to generate. |
minimum_weights |
If you want to set minimums weights. |
hierarchical_list |
List per group / category of variable:
|
list of weight vectors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.