Calculates density from a Normal distribution
Calculates density from a Normal distribution at a specific value with a specified mean and standard deviation.
apollo_normalDensity(normalDensity_settings, functionality)
normalDensity_settings |
List of arguments to the functions. It must contain the following.
|
functionality |
Character. Can take different values depending on desired output.
|
This function estimates the linear model outcomeNormal = mu + xNormal + epsilon, where epsilon is a random error distributed Normal(0,sigma).
If using this function in the context of an Integrated Choice and Latent Variable (ICLV) model with continuous
indicators, then outcomeNormal
would be the value of the indicator, xNormal
would be the value of the latent variable (possibly
multiplied by a parameter to measure its correlation with the indicator, e.g. xNormal=lambda*LV), and mu
would be
an additional parameter to be estimated (the mean of the indicator, which should be fixed to zero if the indicator is
centered around its mean beforehand).
The returned object depends on the value of argument functionality
as follows.
"estimate"
: vector/matrix/array. Returns the likelihood for each observation.
"prediction"
: Not implemented. Returns NA.
"validate"
: Same as "estimate"
, but it also runs a set of tests to validate the function inputs.
"zero_LL"
: Not implemented. Returns NA.
"conditionals"
: Same as "estimate"
"output"
: Same as "estimate"
but also writes summary of input data to internal Apollo log.
"raw"
: Same as "estimate"
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.