Estimates model
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. Options controlling the estimation process.
|
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 directory. Writing
can be turned off by setting estimate_settings$writeIter
to FALSE
, of by using any estimation algorithm
other than BFGS.
By default, final results are not written into a file nor printed into the console, so users must make sure
to call function apollo_modelOutput
and/or apollo_saveOutput
afterwards.
Users are strongly encouraged to visit 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
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.