The function takes the user supplied log-likelihood function and creates convenient wrappers that ensure the function can be evaluated both using a single core and multiple cores.
prepare_log_lik(ll, estim_env, workers)
This is the 'raw' log-likelihood function passed to the estimation routine. It is important that the user takes into account whether the optimization routine is a minimizer (e.g. 'ucminf') or a maximizer (e.g. 'maxlik').
An estimation environment returned by
prepare_estimation_environment
A list of workers created using the parallel package
The estimation-ready log likelihood function