Estimates model
Estimates a model using the likelihood function defined by apollo_probabilities
.
apollo_estimateHB( 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 checking the definition of
apollo_probabilities
by estimating it at the starting values. Then it runs the function with argument functionality="validate"
.
If the user requested more than one core for estimation (i.e. apollo_control$nCores>1
), and no bayesian estimation is used
(i.e. apollo_control$HB=FALSE
), then a cluster is created. Using a cluster at least doubles the requires RAM, as the database
must be copied into the cluster.
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.
This functions does not save results into a file nor prints them into the console, so if users want to see and store estimation the results,
they must make sure to call function apollo_modelOutput
and/or apollo_saveOutput
afterwards.
model object
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.