Description Usage Arguments Details Value
Calculates the probabilities of an ordered probit model and can also perform other operations based on the value of the functionality argument.
1  | apollo_op(op_settings, functionality)
 | 
op_settings | 
 List of settings for the OP model. It should include the following. 
  | 
functionality | 
 Character. Can take different values depending on desired output. 
  | 
This function estimates an ordered probit model of the type:
y^{*} = V + ε \\ y = 1 if -∞ < y^{*} < τ_1, 2 if τ_1 < y^{*} < τ_2, ..., max(y) if τ_{max(y)-1} < y^{*} < ∞
Where ε is distributed standard normal, and the values 1, 2, ..., max(y) can be
replaced by coding[1], coding[2], ..., coding[maxLvl].
The behaviour of the function changes depending on the value of the functionality argument.
The returned object depends on the value of argument functionality as follows.
"estimate": vector/matrix/array. Returns the probabilities for the chosen alternative for each observation.
"prediction": List of vectors/matrices/arrays. Returns a list with the probabilities for all possible levels, with an extra element for the probability of the chosen alternative.
"validate": Same as "estimate", but it also runs a set of tests to validate the function inputs.
"zero_LL": Not implemented. Returns a vector of NA with as many elements as observations.
"conditionals": Same as "estimate"
"output": Same as "estimate" but also writes summary of input data to internal Apollo log.
"raw": Same as "prediction"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.