View source: R/apollo_estimate.R
apollo_estimate | R Documentation |
Estimates a model using the likelihood function defined by apollo_probabilities
.
apollo_estimate(
apollo_beta,
apollo_fixed,
apollo_probabilities,
apollo_inputs,
estimate_settings = NA
)
apollo_beta |
Named numeric vector. Names and values for parameters. |
apollo_fixed |
Character vector. Names (as defined in |
apollo_probabilities |
Function. Returns probabilities of the model to be estimated. Must receive three arguments:
|
apollo_inputs |
List grouping most common inputs. Created by function apollo_validateInputs. |
estimate_settings |
List. Contains settings for this function. User input is required for all settings except those with a default or marked as optional.
|
This is the main function of the Apollo package. The estimation process begins by running a number of checks on the
apollo_probabilities
function provided by the user.
If all checks are passed, estimation begins. There is no limit to estimation time other than reaching the maximum number of
iterations. If Bayesian estimation is used, estimation will finish once the predefined number of iterations are completed.
By default, this functions writes the estimated parameter values in each iteration to a file in the working/output directory. Writing
can be turned off by setting estimate_settings$writeIter
to FALSE
.
By default, final results are not written into a file nor printed to the console, so users must make sure
to call function apollo_modelOutput and/or apollo_saveOutput afterwards.
Users are strongly encouraged to visit http://www.apollochoicemodelling.com/ to download examples on how to use the Apollo package.
The webpage also provides a detailed manual for the package, as well as a user-group to get further help.
model object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.