View source: R/cavi_auxiliary_traits.R
ordinal_probit_normalising_constant | R Documentation |
Computes the probability that ordinal variables belonging to one of K ordered categories each belong to category i under the probit model given the mean of the underlying Gaussian distribution with variance 1.
ordinal_probit_normalising_constant( y, mu, cut_off_points, log_out = TRUE, perform_checks = TRUE )
y |
An N-dimensional vector of ordered factors with K levels. An ordinal manifest trait. |
mu |
An N-dimensional vector of real numbers. The expected value of the underlying Gaussian random variable with variance 1. |
cut_off_points |
A K+1 dimensional ordered vector of values. The cut off points separating auxiliary traits into ordinal state. |
log_out |
Logical. Should the log probability be returned. |
perform_checks |
Logical. Check if function inputs are specified correctly. |
A vector of (log) probabilities.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.