View source: R/cavi_auxiliary_traits.R
nominal_probit_normalising_constant | R Documentation |
Computes a Monte Carlo estimate for probability that a K-dimensional multinomial belongs to category i under the probit model given the mean of the underlying Gaussian distribution with variance 1.
nominal_probit_normalising_constant( i, mu, n_samples = 1000, random_seed = NULL, log_out = FALSE, perform_checks = TRUE )
i |
A positive integer. The index identifying the multinomial category. |
mu |
A K-dimensional vector of real numbers. The expected value of the auxiliary Gaussian mapping to the multinomial. |
n_samples |
A positive integer. The number of independent samples drawn to obtain the Monte Carlo estimate. |
random_seed |
A single value, interpreted as an integer, or NULL. |
log_out |
Logical. Should the log probability be returned. |
perform_checks |
Logical. Check if function inputs are specified correctly. |
A (log) probability scalar.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.