Skip to content

Instantly share code, notes, and snippets.

if (RUN_RAND_EST) {
tic(sprintf("Estimation with %d cores:", core_count))
res3 = wrapper_rand(guess3, fun_xb=lklhd_statedep_xb_m, Xs=model_matrices,
choices=choice_matrices, eta=etas, eta_hh=eta_hh_indcs,
NS=NS, v2m=betas_rand_brand_v2m, cores=core_count, trace=1,
REPORT=5)
toc() # FAILS HERE
# error:
# label: unnamed-chunk-8