Description Usage Arguments Value
View source: R/get_ordinal_priors.R
Get priors for an ordinal variable converted into cumulative log odds
1 | get_ordinal_priors(probs)
|
probs |
A vector of probabilities for each threshold (i.e response point) on your scale. Probabilities must sum to 1 or to 100. |
A vector of cumulative log odds for all n-1 thresholds (i.e. response points). The cumulative log odds for the nth threshold are not returned, given that : 1) the log odds for the last threshold does not need to be specified as a prior in bmrs; 2) probabilities nessarily sum to 1 and the log odds for 1 is Inf.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.