View source: R/formulas_splines.R
| categorical_formula | R Documentation |
Supply exactly one of probabilities and categories; supplying both, or
neither, is an error. Probabilities are normalized to sum to one.
categorical_formula(probabilities = NULL, categories = NULL)
probabilities |
Category probabilities, at least two of them. |
categories |
Number of equal-probability categories, used instead of
|
A one-row simulab_formula base data.frame.
categorical_formula(probabilities = c(0.2, 0.5, 0.3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.