View source: R/cavi_auxiliary_traits.R
nominal_inverse_link | R Documentation |
Map a nominal manifest trait to auxiliary traits.
nominal_inverse_link( y, mu, n_samples = 1000, return_expectation = TRUE, random_seed = NULL, perform_checks = TRUE )
y |
An N-dimensional vector of unordered factors with K levels. A nominal manifest trait. |
mu |
An N-dimensional vector of real numbers. The expected value of the underlying Gaussian random variable with variance 1. |
n_samples |
A positive integer. The number of independent samples drawn to obtain the Monte Carlo estimate. |
return_expectation |
Logical. Should manifest variables map to the expected auxiliary variable or to values sampled from the truncated Gaussian distribution. |
random_seed |
A single value, interpreted as an integer, or NULL. |
perform_checks |
Logical. Check if function inputs are specified correctly. |
An NxK matrix of real values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.