View source: R/cavi_auxiliary_traits.R
nominal_probit_auxiliary_expectation | R Documentation |
Provides Monte Carlo estimates for the expected value of auxiliary variables in the multinomial probit model given the manifest variable belongs in category i and the K-dimensional mean of the underlying Gaussian distribution with variance 1.
nominal_probit_auxiliary_expectation( i, mu, n_samples = 1000, random_seed = NULL, 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. |
perform_checks |
Logical. Check if function inputs are specified correctly. |
A K-dimensional vector of real values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.