R Under development (unstable) (2025-06-24 r88352 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > > > test_check("simulateDCE") Loading required package: simulateDCE New names: * `Choice situation` -> `Choice.situation` * `` -> `...12` New names: * `Choice situation` -> `Choice.situation` * `` -> `...12` I guessed it is an ngene file New names: * `Choice situation` -> `Choice.situation` * `` -> `...12` New names: * `Choice situation` -> `Choice.situation` * `` -> `...12` I assume it is a spdesign. I guessed it is an ngene file New names: * `Choice situation` -> `Choice.situation` * `` -> `...12` New names: * `Choice situation` -> `Choice.situation` * `` -> `...12` I assume it is a spdesign. I assume it is an idefix design. I guessed it is an ngene file New names: * `Choice situation` -> `Choice.situation` * `` -> `...12` 'simple' is deprecated and will be removed in the future. Use 'exact' instead. bcoeff_lookup already exists; skipping modification. Utility function used in simulation, ie the true utility: $u1 $u1$v1 V.1 ~ bsq * alt1.sq $u1$v2 V.2 ~ bfarm2 * alt2.farm2 + bfarm3 * alt2.farm3 + bheight2 * alt2.height2 + bheight3 * alt2.height3 + bredkite * alt2.redkite + bdistance * alt2.distance + bcost * alt2.cost $u1$v3 V.3 ~ bfarm2 * alt3.farm2 + bfarm3 * alt3.farm3 + bheight2 * alt3.height2 + bheight3 * alt3.height3 + bredkite * alt3.redkite + bdistance * alt3.distance + bcost * alt3.cost 'simple' is deprecated and will be removed in the future. Use 'exact' instead. bcoeff_lookup already exists; skipping modification. Utility function used in simulation, ie the true utility: $u1 $u1$v1 V.1 ~ bsq * alt1.sq $u1$v2 V.2 ~ bfarm2 * alt2.farm2 + bfarm3 * alt2.farm3 + bheight2 * alt2.height2 + bheight3 * alt2.height3 + bredkite * alt2.redkite + bdistance * alt2.distance + bcost * alt2.cost $u1$v3 V.3 ~ bfarm2 * alt3.farm2 + bfarm3 * alt3.farm3 + bheight2 * alt3.height2 + bheight3 * alt3.height3 + bredkite * alt3.redkite + bdistance * alt3.distance + bcost * alt3.cost No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.02 sec elapsed split dataframe into groups: 0 sec elapsed for each group calculate utility: 0.75 sec elapsed add random component: 0.11 sec elapsed whole simulate choices: 0.88 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 1.2032321 2.2526979 -1.8133303 1.2032321 3.2776979 -1.76333026 2 2 1.3215956 1.2257961 0.7278753 1.3215956 1.4507961 0.97787527 2 3 0.2237437 1.2195446 -0.2895272 0.2237437 1.2945446 0.06047284 2 4 0.5785869 -1.0369289 1.3576192 0.5785869 -0.7369289 2.20761923 3 5 1.4282446 0.3670292 -0.8595572 1.4282446 0.8670292 -0.43455721 1 6 0.1601561 5.9649992 1.0977633 0.1601561 6.4649992 2.07276329 2 No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.01 sec elapsed split dataframe into groups: 0 sec elapsed for each group calculate utility: 0.64 sec elapsed add random component: 0.11 sec elapsed whole simulate choices: 0.76 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 -1.2976049 1.2079503 3.3066257 -1.2976049 2.2329503 3.3566257 3 2 -0.1249297 0.1591410 1.4665741 -0.1249297 0.3841410 1.7165741 3 3 1.2029919 0.5303838 1.9727267 1.2029919 0.6053838 2.3227267 3 4 -0.4606904 5.6509912 -0.3551471 -0.4606904 5.9509912 0.4948529 2 5 -0.7993105 0.7189799 0.8030211 -0.7993105 1.2189799 1.2280211 3 6 -0.6517607 0.8419812 2.2509676 -0.6517607 1.3419812 3.2259676 3 Transformed utility function (type: simple ): [1] "U_1 = @bsq * $alt1_sq ;U_2 = @bfarm2 * $alt2_farm2 + @bfarm3 * $alt2_farm3 + @bheight2 * $alt2_height2 + @bheight3 * $alt2_height3 + @bredkite * $alt2_redkite + @bdistance * $alt2_distance + @bcost * $alt2_cost ;U_3 = @bfarm2 * $alt3_farm2 + @bfarm3 * $alt3_farm3 + @bheight2 * $alt3_height2 + @bheight3 * $alt3_height3 + @bredkite * $alt3_redkite + @bdistance * $alt3_distance + @bcost * $alt3_cost ;" Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite bdistance bcost -37.33333 12.66667 28.00000 6.00000 19.00000 37.50000 30.41667 135.33333 initial value 439.444915 iter 2 value 436.567600 iter 3 value 434.303326 iter 4 value 423.951398 iter 5 value 423.114335 iter 6 value 422.966578 iter 7 value 422.739244 iter 8 value 422.128892 iter 9 value 421.523656 iter 10 value 421.385904 iter 11 value 420.945031 iter 12 value 420.940765 iter 12 value 420.940762 iter 12 value 420.940762 final value 420.940762 converged Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite -24.333333 6.666667 10.000000 1.000000 24.000000 -127.500000 bdistance bcost 28.916667 70.333333 initial value 439.444915 iter 2 value 435.141228 iter 3 value 434.398721 iter 4 value 423.642476 iter 5 value 422.684064 iter 6 value 422.450797 iter 7 value 422.275510 iter 8 value 422.217331 iter 9 value 421.953268 iter 10 value 421.781685 iter 11 value 421.551347 iter 12 value 421.551335 iter 12 value 421.551335 iter 12 value 421.551335 final value 421.551335 converged start_estimation: 0.41 sec elapsed =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== \ vars n mean sd median min max range skew kurtosis se =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== est_bsq 1 2 -0.10 0.24 -0.10 -0.27 0.07 0.34 0 -2.75 0.17 est_bfarm2 2 2 0.17 0.16 0.17 0.06 0.29 0.23 0 -2.75 0.12 est_bfarm3 3 2 0.36 0.30 0.36 0.15 0.58 0.43 0 -2.75 0.21 est_bheight2 4 2 -0.02 0.15 -0.02 -0.13 0.09 0.22 0 -2.75 0.11 est_bheight3 5 2 0.32 0.21 0.32 0.17 0.47 0.30 0 -2.75 0.15 est_bredkite 6 2 -0.02 0.05 -0.02 -0.06 0.01 0.07 0 -2.75 0.04 est_bdistance 7 2 0.57 0.19 0.57 0.43 0.70 0.27 0 -2.75 0.13 est_bcost 8 2 -0.06 0.01 -0.06 -0.06 -0.05 0.01 0 -2.75 0.01 rob_pval0_bsq 9 2 0.55 0.32 0.55 0.32 0.78 0.46 0 -2.75 0.23 rob_pval0_bfarm2 10 2 0.45 0.45 0.45 0.13 0.77 0.64 0 -2.75 0.32 rob_pval0_bfarm3 11 2 0.24 0.33 0.24 0.00 0.47 0.46 0 -2.75 0.23 rob_pval0_bheight2 12 2 0.48 0.17 0.48 0.36 0.60 0.24 0 -2.75 0.12 rob_pval0_bheight3 13 2 0.16 0.22 0.16 0.00 0.31 0.31 0 -2.75 0.15 rob_pval0_bredkite 14 2 0.31 0.43 0.31 0.01 0.62 0.61 0 -2.75 0.31 rob_pval0_bdistance 15 2 0.01 0.02 0.01 0.00 0.02 0.02 0 -2.75 0.01 rob_pval0_bcost 16 2 0.01 0.01 0.01 0.01 0.02 0.01 0 -2.75 0.01 =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== FALSE 100 total time for simulation and estimation: 13.36 sec elapsed $tic elapsed 4.07 $toc elapsed 17.43 $msg [1] "total time for simulation and estimation" $callback_msg [1] "total time for simulation and estimation: 13.36 sec elapsed" Trying tidyr::pivot_longer for reshaping... 'simple' is deprecated and will be removed in the future. Use 'exact' instead. bcoeff_lookup already exists; skipping modification. Utility function used in simulation, ie the true utility: $u1 $u1$v1 V.1 ~ bsq * alt1.sq $u1$v2 V.2 ~ bfarm2 * alt2.farm2 + bfarm3 * alt2.farm3 + bheight2 * alt2.height2 + bheight3 * alt2.height3 + bredkite * alt2.redkite + bdistance * alt2.distance + bcost * alt2.cost $u1$v3 V.3 ~ bfarm2 * alt3.farm2 + bfarm3 * alt3.farm3 + bheight2 * alt3.height2 + bheight3 * alt3.height3 + bredkite * alt3.redkite + bdistance * alt3.distance + bcost * alt3.cost No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.01 sec elapsed split dataframe into groups: 0.02 sec elapsed for each group calculate utility: 0.7 sec elapsed add random component: 0.11 sec elapsed whole simulate choices: 0.84 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 1.2032321 2.2526979 -1.8133303 1.2032321 3.2776979 -1.76333026 2 2 1.3215956 1.2257961 0.7278753 1.3215956 1.4507961 0.97787527 2 3 0.2237437 1.2195446 -0.2895272 0.2237437 1.2945446 0.06047284 2 4 0.5785869 -1.0369289 1.3576192 0.5785869 -0.7369289 2.20761923 3 5 1.4282446 0.3670292 -0.8595572 1.4282446 0.8670292 -0.43455721 1 6 0.1601561 5.9649992 1.0977633 0.1601561 6.4649992 2.07276329 2 No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.01 sec elapsed split dataframe into groups: 0.02 sec elapsed for each group calculate utility: 0.64 sec elapsed add random component: 0.12 sec elapsed whole simulate choices: 0.79 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 -1.2976049 1.2079503 3.3066257 -1.2976049 2.2329503 3.3566257 3 2 -0.1249297 0.1591410 1.4665741 -0.1249297 0.3841410 1.7165741 3 3 1.2029919 0.5303838 1.9727267 1.2029919 0.6053838 2.3227267 3 4 -0.4606904 5.6509912 -0.3551471 -0.4606904 5.9509912 0.4948529 2 5 -0.7993105 0.7189799 0.8030211 -0.7993105 1.2189799 1.2280211 3 6 -0.6517607 0.8419812 2.2509676 -0.6517607 1.3419812 3.2259676 3 Transformed utility function (type: simple ): [1] "U_1 = @bsq * $alt1_sq ;U_2 = @bfarm2 * $alt2_farm2 + @bfarm3 * $alt2_farm3 + @bheight2 * $alt2_height2 + @bheight3 * $alt2_height3 + @bredkite * $alt2_redkite + @bdistance * $alt2_distance + @bcost * $alt2_cost ;U_3 = @bfarm2 * $alt3_farm2 + @bfarm3 * $alt3_farm3 + @bheight2 * $alt3_height2 + @bheight3 * $alt3_height3 + @bredkite * $alt3_redkite + @bdistance * $alt3_distance + @bcost * $alt3_cost ;" Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite bdistance bcost -37.33333 12.66667 28.00000 6.00000 19.00000 37.50000 30.41667 135.33333 initial value 439.444915 iter 2 value 436.567600 iter 3 value 434.303326 iter 4 value 423.951398 iter 5 value 423.114335 iter 6 value 422.966578 iter 7 value 422.739244 iter 8 value 422.128892 iter 9 value 421.523656 iter 10 value 421.385904 iter 11 value 420.945031 iter 12 value 420.940765 iter 12 value 420.940762 iter 12 value 420.940762 final value 420.940762 converged Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite -24.333333 6.666667 10.000000 1.000000 24.000000 -127.500000 bdistance bcost 28.916667 70.333333 initial value 439.444915 iter 2 value 435.141228 iter 3 value 434.398721 iter 4 value 423.642476 iter 5 value 422.684064 iter 6 value 422.450797 iter 7 value 422.275510 iter 8 value 422.217331 iter 9 value 421.953268 iter 10 value 421.781685 iter 11 value 421.551347 iter 12 value 421.551335 iter 12 value 421.551335 iter 12 value 421.551335 final value 421.551335 converged start_estimation: 0.23 sec elapsed =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== \ vars n mean sd median min max range skew kurtosis se =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== est_bsq 1 2 -0.10 0.24 -0.10 -0.27 0.07 0.34 0 -2.75 0.17 est_bfarm2 2 2 0.17 0.16 0.17 0.06 0.29 0.23 0 -2.75 0.12 est_bfarm3 3 2 0.36 0.30 0.36 0.15 0.58 0.43 0 -2.75 0.21 est_bheight2 4 2 -0.02 0.15 -0.02 -0.13 0.09 0.22 0 -2.75 0.11 est_bheight3 5 2 0.32 0.21 0.32 0.17 0.47 0.30 0 -2.75 0.15 est_bredkite 6 2 -0.02 0.05 -0.02 -0.06 0.01 0.07 0 -2.75 0.04 est_bdistance 7 2 0.57 0.19 0.57 0.43 0.70 0.27 0 -2.75 0.13 est_bcost 8 2 -0.06 0.01 -0.06 -0.06 -0.05 0.01 0 -2.75 0.01 rob_pval0_bsq 9 2 0.55 0.32 0.55 0.32 0.78 0.46 0 -2.75 0.23 rob_pval0_bfarm2 10 2 0.45 0.45 0.45 0.13 0.77 0.64 0 -2.75 0.32 rob_pval0_bfarm3 11 2 0.24 0.33 0.24 0.00 0.47 0.46 0 -2.75 0.23 rob_pval0_bheight2 12 2 0.48 0.17 0.48 0.36 0.60 0.24 0 -2.75 0.12 rob_pval0_bheight3 13 2 0.16 0.22 0.16 0.00 0.31 0.31 0 -2.75 0.15 rob_pval0_bredkite 14 2 0.31 0.43 0.31 0.01 0.62 0.61 0 -2.75 0.31 rob_pval0_bdistance 15 2 0.01 0.02 0.01 0.00 0.02 0.02 0 -2.75 0.01 rob_pval0_bcost 16 2 0.01 0.01 0.01 0.01 0.02 0.01 0 -2.75 0.01 =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== FALSE 100 total time for simulation and estimation: 3.91 sec elapsed $tic elapsed 19.57 $toc elapsed 23.48 $msg [1] "total time for simulation and estimation" $callback_msg [1] "total time for simulation and estimation: 3.91 sec elapsed" Trying tidyr::pivot_longer for reshaping... 'simple' is deprecated and will be removed in the future. Use 'exact' instead. bcoeff_lookup already exists; skipping modification. Utility function used in simulation, ie the true utility: $u1 $u1$v1 V.1 ~ bsq * alt1.sq $u1$v2 V.2 ~ bfarm2 * alt2.farm2 + bfarm3 * alt2.farm3 + bheight2 * alt2.height2 + bheight3 * alt2.height3 + bredkite * alt2.redkite + bdistance * alt2.distance + bcost * alt2.cost $u1$v3 V.3 ~ bfarm2 * alt3.farm2 + bfarm3 * alt3.farm3 + bheight2 * alt3.height2 + bheight3 * alt3.height3 + bredkite * alt3.redkite + bdistance * alt3.distance + bcost * alt3.cost No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.02 sec elapsed split dataframe into groups: 0 sec elapsed for each group calculate utility: 0.78 sec elapsed add random component: 0.09 sec elapsed whole simulate choices: 0.89 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 -0.78431722 -0.5370213 1.78723161 -0.78431722 0.4879787 1.83723161 3 2 0.89942217 -0.8217744 -1.13377367 0.89942217 -0.5967744 -0.88377367 1 3 -0.21892219 -0.6382350 -0.43739298 -0.21892219 -0.5632350 -0.08739298 3 4 -0.05307909 -0.5067132 -0.36942821 -0.05307909 -0.2067132 0.48057179 3 5 4.69151818 1.1744229 -1.25901221 4.69151818 1.6744229 -0.83401221 1 6 -0.54545119 -0.8391859 -0.02258502 -0.54545119 -0.3391859 0.95241498 3 No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.03 sec elapsed split dataframe into groups: 0 sec elapsed for each group calculate utility: 0.64 sec elapsed add random component: 0.11 sec elapsed whole simulate choices: 0.78 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 -0.9037131 -0.3137429 0.7767242 -0.9037131 0.71125713 0.8267242 3 2 2.0558689 1.0951927 -1.1288137 2.0558689 1.32019268 -0.8788137 1 3 2.5031509 0.7636372 1.4652592 2.5031509 0.83863722 1.8152592 1 4 0.4556093 1.0986471 1.0948126 0.4556093 1.39864705 1.9448126 3 5 -0.3234814 -0.4238654 0.7120557 -0.3234814 0.07613459 1.1370557 3 6 -0.5036942 3.2575556 2.4493290 -0.5036942 3.75755556 3.4243290 2 Transformed utility function (type: simple ): [1] "U_1 = @bsq * $alt1_sq ;U_2 = @bfarm2 * $alt2_farm2 + @bfarm3 * $alt2_farm3 + @bheight2 * $alt2_height2 + @bheight3 * $alt2_height3 + @bredkite * $alt2_redkite + @bdistance * $alt2_distance + @bcost * $alt2_cost ;U_3 = @bfarm2 * $alt3_farm2 + @bfarm3 * $alt3_farm3 + @bheight2 * $alt3_height2 + @bheight3 * $alt3_height3 + @bredkite * $alt3_redkite + @bdistance * $alt3_distance + @bcost * $alt3_cost ;" Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite bdistance -33.333333 8.666667 19.000000 10.000000 27.000000 -72.500000 32.666667 bcost 147.333333 initial value 439.444915 iter 2 value 435.427767 iter 3 value 435.090112 iter 4 value 423.038264 iter 5 value 421.917351 iter 6 value 421.507254 iter 7 value 421.359462 iter 8 value 421.253319 iter 9 value 420.832073 iter 10 value 420.618197 iter 11 value 420.519563 iter 12 value 420.519529 iter 12 value 420.519529 iter 12 value 420.519529 final value 420.519529 converged Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite bdistance bcost -32.33333 15.66667 18.00000 17.00000 12.00000 -62.50000 28.41667 118.33333 initial value 439.444915 iter 2 value 436.610204 iter 3 value 436.087419 iter 4 value 427.384201 iter 5 value 426.972995 iter 6 value 426.426190 iter 7 value 426.250595 iter 8 value 426.058491 iter 9 value 425.434890 iter 10 value 425.236758 iter 11 value 425.110463 iter 12 value 425.110237 iter 12 value 425.110237 iter 12 value 425.110237 final value 425.110237 converged start_estimation: 0.22 sec elapsed =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== \ vars n mean sd median min max range skew kurtosis se =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== est_bsq 1 2 0.10 0.13 0.10 0.01 0.19 0.18 0 -2.75 0.09 est_bfarm2 2 2 0.22 0.14 0.22 0.12 0.32 0.20 0 -2.75 0.10 est_bfarm3 3 2 0.34 0.05 0.34 0.31 0.37 0.07 0 -2.75 0.03 est_bheight2 4 2 0.25 0.02 0.25 0.23 0.26 0.03 0 -2.75 0.01 est_bheight3 5 2 0.39 0.23 0.39 0.23 0.56 0.33 0 -2.75 0.17 est_bredkite 6 2 -0.04 0.00 -0.04 -0.04 -0.03 0.01 0 -2.75 0.00 est_bdistance 7 2 0.57 0.12 0.57 0.48 0.66 0.17 0 -2.75 0.09 est_bcost 8 2 -0.04 0.01 -0.04 -0.04 -0.03 0.01 0 -2.75 0.01 rob_pval0_bsq 9 2 0.73 0.35 0.73 0.48 0.98 0.50 0 -2.75 0.25 rob_pval0_bfarm2 10 2 0.27 0.38 0.27 0.01 0.54 0.54 0 -2.75 0.27 rob_pval0_bfarm3 11 2 0.04 0.03 0.04 0.02 0.06 0.04 0 -2.75 0.02 rob_pval0_bheight2 12 2 0.18 0.03 0.18 0.16 0.20 0.04 0 -2.75 0.02 rob_pval0_bheight3 13 2 0.10 0.14 0.10 0.00 0.20 0.20 0 -2.75 0.10 rob_pval0_bredkite 14 2 0.04 0.01 0.04 0.03 0.05 0.02 0 -2.75 0.01 rob_pval0_bdistance 15 2 0.00 0.01 0.00 0.00 0.01 0.01 0 -2.75 0.00 rob_pval0_bcost 16 2 0.16 0.09 0.16 0.10 0.23 0.13 0 -2.75 0.06 =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== FALSE 100 total time for simulation and estimation: 3.72 sec elapsed $tic elapsed 24.95 $toc elapsed 28.67 $msg [1] "total time for simulation and estimation" $callback_msg [1] "total time for simulation and estimation: 3.72 sec elapsed" Trying tidyr::pivot_longer for reshaping... 'simple' is deprecated and will be removed in the future. Use 'exact' instead. bcoeff_lookup already exists; skipping modification. Utility function used in simulation, ie the true utility: $u1 $u1$v1 V.1 ~ bsq * alt1.sq $u1$v2 V.2 ~ bfarm2 * alt2.farm2 + bfarm3 * alt2.farm3 + bheight2 * alt2.height2 + bheight3 * alt2.height3 + bredkite * alt2.redkite + bdistance * alt2.distance + bcost * alt2.cost $u1$v3 V.3 ~ bfarm2 * alt3.farm2 + bfarm3 * alt3.farm3 + bheight2 * alt3.height2 + bheight3 * alt3.height3 + bredkite * alt3.redkite + bdistance * alt3.distance + bcost * alt3.cost No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.02 sec elapsed split dataframe into groups: 0.02 sec elapsed for each group calculate utility: 0.7 sec elapsed add random component: 0.08 sec elapsed whole simulate choices: 0.82 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 -0.343080876 0.5579047 2.0521519 -0.343080876 1.5829047 2.1021519 3 2 0.288575550 0.1185012 -0.4336827 0.288575550 0.3435012 -0.1836827 2 3 0.005443456 -1.9479375 -0.9641449 0.005443456 -1.8729375 -0.6141449 1 4 1.398961360 0.5597064 -0.6498366 1.398961360 0.8597064 0.2001634 1 5 -0.845229557 4.6910412 0.1227863 -0.845229557 5.1910412 0.5477863 2 6 1.138775457 5.9350645 1.9103766 1.138775457 6.4350645 2.8853766 2 No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.02 sec elapsed split dataframe into groups: 0.01 sec elapsed for each group calculate utility: 0.75 sec elapsed add random component: 0.11 sec elapsed whole simulate choices: 0.89 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 -0.482269261 1.68965225 0.1444756 -0.482269261 2.7146523 0.1944756 2 2 0.327306285 5.01631976 -1.1899693 0.327306285 5.2413198 -0.9399693 2 3 -0.304987351 2.34211924 0.7129281 -0.304987351 2.4171192 1.0629281 2 4 0.008687235 -0.79364089 3.0361422 0.008687235 -0.4936409 3.8861422 3 5 -1.024178973 -0.02791243 -1.2367753 -1.024178973 0.4720876 -0.8117753 2 6 2.335020905 0.39402569 0.5209372 2.335020905 0.8940257 1.4959372 1 Transformed utility function (type: simple ): [1] "U_1 = @bsq * $alt1_sq ;U_2 = @bfarm2 * $alt2_farm2 + @bfarm3 * $alt2_farm3 + @bheight2 * $alt2_height2 + @bheight3 * $alt2_height3 + @bredkite * $alt2_redkite + @bdistance * $alt2_distance + @bcost * $alt2_cost ;U_3 = @bfarm2 * $alt3_farm2 + @bfarm3 * $alt3_farm3 + @bheight2 * $alt3_height2 + @bheight3 * $alt3_height3 + @bredkite * $alt3_redkite + @bdistance * $alt3_distance + @bcost * $alt3_cost ;" Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite -40.333333 2.666667 41.000000 7.000000 25.000000 -195.000000 bdistance bcost 31.666667 159.333333 initial value 439.444915 iter 2 value 428.104260 iter 3 value 426.363954 iter 4 value 408.391042 iter 5 value 407.458626 iter 6 value 406.519628 iter 7 value 405.998253 iter 8 value 404.922429 iter 9 value 404.215771 iter 10 value 404.153617 iter 11 value 403.563490 iter 12 value 403.562752 iter 12 value 403.562752 iter 12 value 403.562752 final value 403.562752 converged Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite bdistance bcost -41.33333 22.66667 29.00000 2.00000 22.00000 -60.00000 46.41667 210.33333 initial value 439.444915 iter 2 value 432.947684 iter 3 value 430.749776 iter 4 value 415.103850 iter 5 value 411.209990 iter 6 value 410.317262 iter 7 value 409.381720 iter 8 value 409.080596 iter 9 value 408.130033 iter 10 value 407.189159 iter 11 value 406.111730 iter 12 value 406.107584 iter 12 value 406.107581 iter 12 value 406.107581 final value 406.107581 converged start_estimation: 0.2 sec elapsed =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== \ vars n mean sd median min max range skew kurtosis se =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== est_bsq 1 2 0.13 0.24 0.13 -0.04 0.30 0.34 0 -2.75 0.17 est_bfarm2 2 2 0.41 0.23 0.41 0.25 0.57 0.32 0 -2.75 0.16 est_bfarm3 3 2 0.82 0.10 0.82 0.75 0.89 0.14 0 -2.75 0.07 est_bheight2 4 2 -0.06 0.12 -0.06 -0.14 0.02 0.17 0 -2.75 0.08 est_bheight3 5 2 0.34 0.14 0.34 0.24 0.44 0.20 0 -2.75 0.10 est_bredkite 6 2 -0.06 0.04 -0.06 -0.09 -0.03 0.06 0 -2.75 0.03 est_bdistance 7 2 0.73 0.35 0.73 0.48 0.98 0.50 0 -2.75 0.25 est_bcost 8 2 -0.05 0.02 -0.05 -0.06 -0.03 0.03 0 -2.75 0.01 rob_pval0_bsq 9 2 0.61 0.39 0.61 0.33 0.88 0.56 0 -2.75 0.28 rob_pval0_bfarm2 10 2 0.08 0.11 0.08 0.00 0.16 0.16 0 -2.75 0.08 rob_pval0_bfarm3 11 2 0.00 0.00 0.00 0.00 0.00 0.00 0 -2.75 0.00 rob_pval0_bheight2 12 2 0.61 0.40 0.61 0.33 0.89 0.56 0 -2.75 0.28 rob_pval0_bheight3 13 2 0.10 0.13 0.10 0.01 0.19 0.19 0 -2.75 0.09 rob_pval0_bredkite 14 2 0.04 0.05 0.04 0.00 0.08 0.08 0 -2.75 0.04 rob_pval0_bdistance 15 2 0.00 0.01 0.00 0.00 0.01 0.01 0 -2.75 0.00 rob_pval0_bcost 16 2 0.12 0.13 0.12 0.03 0.21 0.19 0 -2.75 0.09 =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== FALSE 100 total time for simulation and estimation: 3.85 sec elapsed $tic elapsed 30 $toc elapsed 33.85 $msg [1] "total time for simulation and estimation" $callback_msg [1] "total time for simulation and estimation: 3.85 sec elapsed" Trying tidyr::pivot_longer for reshaping... 'simple' is deprecated and will be removed in the future. Use 'exact' instead. bcoeff_lookup already exists; skipping modification. Utility function used in simulation, ie the true utility: $u1 $u1$v1 V.1 ~ bsq * alt1.sq $u1$v2 V.2 ~ bfarm2 * alt2.farm2 + bfarm3 * alt2.farm3 + bheight2 * alt2.height2 + bheight3 * alt2.height3 + bredkite * alt2.redkite + bdistance * alt2.distance + bcost * alt2.cost $u1$v3 V.3 ~ bfarm2 * alt3.farm2 + bfarm3 * alt3.farm3 + bheight2 * alt3.height2 + bheight3 * alt3.height3 + bredkite * alt3.redkite + bdistance * alt3.distance + bcost * alt3.cost No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.01 sec elapsed split dataframe into groups: 0.02 sec elapsed for each group calculate utility: 0.73 sec elapsed add random component: 0.11 sec elapsed whole simulate choices: 0.87 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 1.2032321 2.2526979 -1.8133303 1.2032321 3.2776979 -1.76333026 2 2 1.3215956 1.2257961 0.7278753 1.3215956 1.4507961 0.97787527 2 3 0.2237437 1.2195446 -0.2895272 0.2237437 1.2945446 0.06047284 2 4 0.5785869 -1.0369289 1.3576192 0.5785869 -0.7369289 2.20761923 3 5 1.4282446 0.3670292 -0.8595572 1.4282446 0.8670292 -0.43455721 1 6 0.1601561 5.9649992 1.0977633 0.1601561 6.4649992 2.07276329 2 No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.03 sec elapsed split dataframe into groups: 0 sec elapsed for each group calculate utility: 0.7 sec elapsed add random component: 0.13 sec elapsed whole simulate choices: 0.86 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 -1.2976049 1.2079503 3.3066257 -1.2976049 2.2329503 3.3566257 3 2 -0.1249297 0.1591410 1.4665741 -0.1249297 0.3841410 1.7165741 3 3 1.2029919 0.5303838 1.9727267 1.2029919 0.6053838 2.3227267 3 4 -0.4606904 5.6509912 -0.3551471 -0.4606904 5.9509912 0.4948529 2 5 -0.7993105 0.7189799 0.8030211 -0.7993105 1.2189799 1.2280211 3 6 -0.6517607 0.8419812 2.2509676 -0.6517607 1.3419812 3.2259676 3 Transformed utility function (type: simple ): [1] "U_1 = @bsq * $alt1_sq ;U_2 = @bfarm2 * $alt2_farm2 + @bfarm3 * $alt2_farm3 + @bheight2 * $alt2_height2 + @bheight3 * $alt2_height3 + @bredkite * $alt2_redkite + @bdistance * $alt2_distance + @bcost * $alt2_cost ;U_3 = @bfarm2 * $alt3_farm2 + @bfarm3 * $alt3_farm3 + @bheight2 * $alt3_height2 + @bheight3 * $alt3_height3 + @bredkite * $alt3_redkite + @bdistance * $alt3_distance + @bcost * $alt3_cost ;" Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite bdistance bcost -37.33333 12.66667 28.00000 6.00000 19.00000 37.50000 30.41667 135.33333 initial value 439.444915 iter 2 value 436.567600 iter 3 value 434.303326 iter 4 value 423.951398 iter 5 value 423.114335 iter 6 value 422.966578 iter 7 value 422.739244 iter 8 value 422.128892 iter 9 value 421.523656 iter 10 value 421.385904 iter 11 value 420.945031 iter 12 value 420.940765 iter 12 value 420.940762 iter 12 value 420.940762 final value 420.940762 converged Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite -24.333333 6.666667 10.000000 1.000000 24.000000 -127.500000 bdistance bcost 28.916667 70.333333 initial value 439.444915 iter 2 value 435.141228 iter 3 value 434.398721 iter 4 value 423.642476 iter 5 value 422.684064 iter 6 value 422.450797 iter 7 value 422.275510 iter 8 value 422.217331 iter 9 value 421.953268 iter 10 value 421.781685 iter 11 value 421.551347 iter 12 value 421.551335 iter 12 value 421.551335 iter 12 value 421.551335 final value 421.551335 converged start_estimation: 0.21 sec elapsed =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== \ vars n mean sd median min max range skew kurtosis se =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== est_bsq 1 2 -0.10 0.24 -0.10 -0.27 0.07 0.34 0 -2.75 0.17 est_bfarm2 2 2 0.17 0.16 0.17 0.06 0.29 0.23 0 -2.75 0.12 est_bfarm3 3 2 0.36 0.30 0.36 0.15 0.58 0.43 0 -2.75 0.21 est_bheight2 4 2 -0.02 0.15 -0.02 -0.13 0.09 0.22 0 -2.75 0.11 est_bheight3 5 2 0.32 0.21 0.32 0.17 0.47 0.30 0 -2.75 0.15 est_bredkite 6 2 -0.02 0.05 -0.02 -0.06 0.01 0.07 0 -2.75 0.04 est_bdistance 7 2 0.57 0.19 0.57 0.43 0.70 0.27 0 -2.75 0.13 est_bcost 8 2 -0.06 0.01 -0.06 -0.06 -0.05 0.01 0 -2.75 0.01 rob_pval0_bsq 9 2 0.55 0.32 0.55 0.32 0.78 0.46 0 -2.75 0.23 rob_pval0_bfarm2 10 2 0.45 0.45 0.45 0.13 0.77 0.64 0 -2.75 0.32 rob_pval0_bfarm3 11 2 0.24 0.33 0.24 0.00 0.47 0.46 0 -2.75 0.23 rob_pval0_bheight2 12 2 0.48 0.17 0.48 0.36 0.60 0.24 0 -2.75 0.12 rob_pval0_bheight3 13 2 0.16 0.22 0.16 0.00 0.31 0.31 0 -2.75 0.15 rob_pval0_bredkite 14 2 0.31 0.43 0.31 0.01 0.62 0.61 0 -2.75 0.31 rob_pval0_bdistance 15 2 0.01 0.02 0.01 0.00 0.02 0.02 0 -2.75 0.01 rob_pval0_bcost 16 2 0.01 0.01 0.01 0.01 0.02 0.01 0 -2.75 0.01 =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== FALSE 100 total time for simulation and estimation: 3.88 sec elapsed $tic elapsed 35.62 $toc elapsed 39.5 $msg [1] "total time for simulation and estimation" $callback_msg [1] "total time for simulation and estimation: 3.88 sec elapsed" Trying tidyr::pivot_longer for reshaping... bcoeff_lookup already exists; skipping modification. Utility function used in simulation, ie the true utility: $u1 $u1$v1 V.1 ~ bsq * alt1.sq $u1$v2 V.2 ~ bfarm2 * alt2.farm2 + bfarm3 * alt2.farm3 + bheight2 * alt2.height2 + bheight3 * alt2.height3 + bredkite * alt2.redkite + bdistance * alt2.distance + bcost * alt2.cost $u1$v3 V.3 ~ bfarm2 * alt3.farm2 + bfarm3 * alt3.farm3 + bheight2 * alt3.height2 + bheight3 * alt3.height3 + bredkite * alt3.redkite + bdistance * alt3.distance + bcost * alt3.cost No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.03 sec elapsed split dataframe into groups: 0 sec elapsed for each group calculate utility: 0.67 sec elapsed add random component: 0.1 sec elapsed whole simulate choices: 0.8 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 1.2032321 2.2526979 -1.8133303 1.2032321 3.2776979 -1.76333026 2 2 1.3215956 1.2257961 0.7278753 1.3215956 1.4507961 0.97787527 2 3 0.2237437 1.2195446 -0.2895272 0.2237437 1.2945446 0.06047284 2 4 0.5785869 -1.0369289 1.3576192 0.5785869 -0.7369289 2.20761923 3 5 1.4282446 0.3670292 -0.8595572 1.4282446 0.8670292 -0.43455721 1 6 0.1601561 5.9649992 1.0977633 0.1601561 6.4649992 2.07276329 2 No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.02 sec elapsed split dataframe into groups: 0 sec elapsed for each group calculate utility: 0.63 sec elapsed add random component: 0.09 sec elapsed whole simulate choices: 0.74 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 -1.2976049 1.2079503 3.3066257 -1.2976049 2.2329503 3.3566257 3 2 -0.1249297 0.1591410 1.4665741 -0.1249297 0.3841410 1.7165741 3 3 1.2029919 0.5303838 1.9727267 1.2029919 0.6053838 2.3227267 3 4 -0.4606904 5.6509912 -0.3551471 -0.4606904 5.9509912 0.4948529 2 5 -0.7993105 0.7189799 0.8030211 -0.7993105 1.2189799 1.2280211 3 6 -0.6517607 0.8419812 2.2509676 -0.6517607 1.3419812 3.2259676 3 Transformed utility function (type: exact ): [1] "U_1 = @bsq * $alt1_sq ;U_2 = @bfarm2 * $alt2_farm2 + @bfarm3 * $alt2_farm3 + @bheight2 * $alt2_height2 + @bheight3 * $alt2_height3 + @bredkite * $alt2_redkite + @bdistance * $alt2_distance + @bcost * $alt2_cost ;U_3 = @bfarm2 * $alt3_farm2 + @bfarm3 * $alt3_farm3 + @bheight2 * $alt3_height2 + @bheight3 * $alt3_height3 + @bredkite * $alt3_redkite + @bdistance * $alt3_distance + @bcost * $alt3_cost ;" Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite bdistance bcost -37.33333 12.66667 28.00000 6.00000 19.00000 37.50000 30.41667 135.33333 initial value 439.444915 iter 2 value 436.567600 iter 3 value 434.303326 iter 4 value 423.951398 iter 5 value 423.114335 iter 6 value 422.966578 iter 7 value 422.739244 iter 8 value 422.128892 iter 9 value 421.523656 iter 10 value 421.385904 iter 11 value 420.945031 iter 12 value 420.940765 iter 12 value 420.940762 iter 12 value 420.940762 final value 420.940762 converged Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite -24.333333 6.666667 10.000000 1.000000 24.000000 -127.500000 bdistance bcost 28.916667 70.333333 initial value 439.444915 iter 2 value 435.141228 iter 3 value 434.398721 iter 4 value 423.642476 iter 5 value 422.684064 iter 6 value 422.450797 iter 7 value 422.275510 iter 8 value 422.217331 iter 9 value 421.953268 iter 10 value 421.781685 iter 11 value 421.551347 iter 12 value 421.551335 iter 12 value 421.551335 iter 12 value 421.551335 final value 421.551335 converged start_estimation: 0.2 sec elapsed =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== \ vars n mean sd median min max range skew kurtosis se =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== est_bsq 1 2 -0.10 0.24 -0.10 -0.27 0.07 0.34 0 -2.75 0.17 est_bfarm2 2 2 0.17 0.16 0.17 0.06 0.29 0.23 0 -2.75 0.12 est_bfarm3 3 2 0.36 0.30 0.36 0.15 0.58 0.43 0 -2.75 0.21 est_bheight2 4 2 -0.02 0.15 -0.02 -0.13 0.09 0.22 0 -2.75 0.11 est_bheight3 5 2 0.32 0.21 0.32 0.17 0.47 0.30 0 -2.75 0.15 est_bredkite 6 2 -0.02 0.05 -0.02 -0.06 0.01 0.07 0 -2.75 0.04 est_bdistance 7 2 0.57 0.19 0.57 0.43 0.70 0.27 0 -2.75 0.13 est_bcost 8 2 -0.06 0.01 -0.06 -0.06 -0.05 0.01 0 -2.75 0.01 rob_pval0_bsq 9 2 0.55 0.32 0.55 0.32 0.78 0.46 0 -2.75 0.23 rob_pval0_bfarm2 10 2 0.45 0.45 0.45 0.13 0.77 0.64 0 -2.75 0.32 rob_pval0_bfarm3 11 2 0.24 0.33 0.24 0.00 0.47 0.46 0 -2.75 0.23 rob_pval0_bheight2 12 2 0.48 0.17 0.48 0.36 0.60 0.24 0 -2.75 0.12 rob_pval0_bheight3 13 2 0.16 0.22 0.16 0.00 0.31 0.31 0 -2.75 0.15 rob_pval0_bredkite 14 2 0.31 0.43 0.31 0.01 0.62 0.61 0 -2.75 0.31 rob_pval0_bdistance 15 2 0.01 0.02 0.01 0.00 0.02 0.02 0 -2.75 0.01 rob_pval0_bcost 16 2 0.01 0.01 0.01 0.01 0.02 0.01 0 -2.75 0.01 =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== FALSE 100 total time for simulation and estimation: 3.99 sec elapsed $tic elapsed 40.85 $toc elapsed 44.84 $msg [1] "total time for simulation and estimation" $callback_msg [1] "total time for simulation and estimation: 3.99 sec elapsed" Trying tidyr::pivot_longer for reshaping... 'simple' is deprecated and will be removed in the future. Use 'exact' instead. bcoeff_lookup already exists; skipping modification. Utility function used in simulation, ie the true utility: $u1 $u1$v1 V.1 ~ bsq * alt1.sq $u1$v2 V.2 ~ bfarm2 * alt2.farm2 + bfarm3 * alt2.farm3 + bheight2 * alt2.height2 + bheight3 * alt2.height3 + bredkite * alt2.redkite + bdistance * alt2.distance + bcost * alt2.cost $u1$v3 V.3 ~ bfarm2 * alt3.farm2 + bfarm3 * alt3.farm3 + bheight2 * alt3.height2 + bheight3 * alt3.height3 + bredkite * alt3.redkite + bdistance * alt3.distance + bcost * alt3.cost No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.01 sec elapsed split dataframe into groups: 0.02 sec elapsed for each group calculate utility: 0.68 sec elapsed add random component: 0.11 sec elapsed whole simulate choices: 0.82 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 -0.78431722 -0.5370213 1.78723161 -0.78431722 0.4879787 1.83723161 3 2 0.89942217 -0.8217744 -1.13377367 0.89942217 -0.5967744 -0.88377367 1 3 -0.21892219 -0.6382350 -0.43739298 -0.21892219 -0.5632350 -0.08739298 3 4 -0.05307909 -0.5067132 -0.36942821 -0.05307909 -0.2067132 0.48057179 3 5 4.69151818 1.1744229 -1.25901221 4.69151818 1.6744229 -0.83401221 1 6 -0.54545119 -0.8391859 -0.02258502 -0.54545119 -0.3391859 0.95241498 3 No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.03 sec elapsed split dataframe into groups: 0 sec elapsed for each group calculate utility: 0.75 sec elapsed add random component: 0.11 sec elapsed whole simulate choices: 0.89 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 -0.9037131 -0.3137429 0.7767242 -0.9037131 0.71125713 0.8267242 3 2 2.0558689 1.0951927 -1.1288137 2.0558689 1.32019268 -0.8788137 1 3 2.5031509 0.7636372 1.4652592 2.5031509 0.83863722 1.8152592 1 4 0.4556093 1.0986471 1.0948126 0.4556093 1.39864705 1.9448126 3 5 -0.3234814 -0.4238654 0.7120557 -0.3234814 0.07613459 1.1370557 3 6 -0.5036942 3.2575556 2.4493290 -0.5036942 3.75755556 3.4243290 2 Transformed utility function (type: simple ): [1] "U_1 = @bsq * $alt1_sq ;U_2 = @bfarm2 * $alt2_farm2 + @bfarm3 * $alt2_farm3 + @bheight2 * $alt2_height2 + @bheight3 * $alt2_height3 + @bredkite * $alt2_redkite + @bdistance * $alt2_distance + @bcost * $alt2_cost ;U_3 = @bfarm2 * $alt3_farm2 + @bfarm3 * $alt3_farm3 + @bheight2 * $alt3_height2 + @bheight3 * $alt3_height3 + @bredkite * $alt3_redkite + @bdistance * $alt3_distance + @bcost * $alt3_cost ;" Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite bdistance -33.333333 8.666667 19.000000 10.000000 27.000000 -72.500000 32.666667 bcost 147.333333 initial value 439.444915 iter 2 value 435.427767 iter 3 value 435.090112 iter 4 value 423.038264 iter 5 value 421.917351 iter 6 value 421.507254 iter 7 value 421.359462 iter 8 value 421.253319 iter 9 value 420.832073 iter 10 value 420.618197 iter 11 value 420.519563 iter 12 value 420.519529 iter 12 value 420.519529 iter 12 value 420.519529 final value 420.519529 converged Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite bdistance bcost -32.33333 15.66667 18.00000 17.00000 12.00000 -62.50000 28.41667 118.33333 initial value 439.444915 iter 2 value 436.610204 iter 3 value 436.087419 iter 4 value 427.384201 iter 5 value 426.972995 iter 6 value 426.426190 iter 7 value 426.250595 iter 8 value 426.058491 iter 9 value 425.434890 iter 10 value 425.236758 iter 11 value 425.110463 iter 12 value 425.110237 iter 12 value 425.110237 iter 12 value 425.110237 final value 425.110237 converged start_estimation: 0.18 sec elapsed =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== \ vars n mean sd median min max range skew kurtosis se =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== est_bsq 1 2 0.10 0.13 0.10 0.01 0.19 0.18 0 -2.75 0.09 est_bfarm2 2 2 0.22 0.14 0.22 0.12 0.32 0.20 0 -2.75 0.10 est_bfarm3 3 2 0.34 0.05 0.34 0.31 0.37 0.07 0 -2.75 0.03 est_bheight2 4 2 0.25 0.02 0.25 0.23 0.26 0.03 0 -2.75 0.01 est_bheight3 5 2 0.39 0.23 0.39 0.23 0.56 0.33 0 -2.75 0.17 est_bredkite 6 2 -0.04 0.00 -0.04 -0.04 -0.03 0.01 0 -2.75 0.00 est_bdistance 7 2 0.57 0.12 0.57 0.48 0.66 0.17 0 -2.75 0.09 est_bcost 8 2 -0.04 0.01 -0.04 -0.04 -0.03 0.01 0 -2.75 0.01 rob_pval0_bsq 9 2 0.73 0.35 0.73 0.48 0.98 0.50 0 -2.75 0.25 rob_pval0_bfarm2 10 2 0.27 0.38 0.27 0.01 0.54 0.54 0 -2.75 0.27 rob_pval0_bfarm3 11 2 0.04 0.03 0.04 0.02 0.06 0.04 0 -2.75 0.02 rob_pval0_bheight2 12 2 0.18 0.03 0.18 0.16 0.20 0.04 0 -2.75 0.02 rob_pval0_bheight3 13 2 0.10 0.14 0.10 0.00 0.20 0.20 0 -2.75 0.10 rob_pval0_bredkite 14 2 0.04 0.01 0.04 0.03 0.05 0.02 0 -2.75 0.01 rob_pval0_bdistance 15 2 0.00 0.01 0.00 0.00 0.01 0.01 0 -2.75 0.00 rob_pval0_bcost 16 2 0.16 0.09 0.16 0.10 0.23 0.13 0 -2.75 0.06 =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== FALSE 100 total time for simulation and estimation: 3.86 sec elapsed $tic elapsed 46.35 $toc elapsed 50.21 $msg [1] "total time for simulation and estimation" $callback_msg [1] "total time for simulation and estimation: 3.86 sec elapsed" Trying tidyr::pivot_longer for reshaping... 'simple' is deprecated and will be removed in the future. Use 'exact' instead. bcoeff_lookup already exists; skipping modification. Utility function used in simulation, ie the true utility: $u1 $u1$v1 V.1 ~ bsq * alt1.sq $u1$v2 V.2 ~ bfarm2 * alt2.farm2 + bfarm3 * alt2.farm3 + bheight2 * alt2.height2 + bheight3 * alt2.height3 + bredkite * alt2.redkite + bdistance * alt2.distance + bcost * alt2.cost $u1$v3 V.3 ~ bfarm2 * alt3.farm2 + bfarm3 * alt3.farm3 + bheight2 * alt3.height2 + bheight3 * alt3.height3 + bredkite * alt3.redkite + bdistance * alt3.distance + bcost * alt3.cost No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.03 sec elapsed split dataframe into groups: 0 sec elapsed for each group calculate utility: 0.74 sec elapsed add random component: 0.11 sec elapsed whole simulate choices: 0.88 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 -0.343080876 0.5579047 2.0521519 -0.343080876 1.5829047 2.1021519 3 2 0.288575550 0.1185012 -0.4336827 0.288575550 0.3435012 -0.1836827 2 3 0.005443456 -1.9479375 -0.9641449 0.005443456 -1.8729375 -0.6141449 1 4 1.398961360 0.5597064 -0.6498366 1.398961360 0.8597064 0.2001634 1 5 -0.845229557 4.6910412 0.1227863 -0.845229557 5.1910412 0.5477863 2 6 1.138775457 5.9350645 1.9103766 1.138775457 6.4350645 2.8853766 2 No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0.03 sec elapsed split dataframe into groups: 0 sec elapsed for each group calculate utility: 0.77 sec elapsed add random component: 0.11 sec elapsed whole simulate choices: 0.91 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 -0.482269261 1.68965225 0.1444756 -0.482269261 2.7146523 0.1944756 2 2 0.327306285 5.01631976 -1.1899693 0.327306285 5.2413198 -0.9399693 2 3 -0.304987351 2.34211924 0.7129281 -0.304987351 2.4171192 1.0629281 2 4 0.008687235 -0.79364089 3.0361422 0.008687235 -0.4936409 3.8861422 3 5 -1.024178973 -0.02791243 -1.2367753 -1.024178973 0.4720876 -0.8117753 2 6 2.335020905 0.39402569 0.5209372 2.335020905 0.8940257 1.4959372 1 Transformed utility function (type: simple ): [1] "U_1 = @bsq * $alt1_sq ;U_2 = @bfarm2 * $alt2_farm2 + @bfarm3 * $alt2_farm3 + @bheight2 * $alt2_height2 + @bheight3 * $alt2_height3 + @bredkite * $alt2_redkite + @bdistance * $alt2_distance + @bcost * $alt2_cost ;U_3 = @bfarm2 * $alt3_farm2 + @bfarm3 * $alt3_farm3 + @bheight2 * $alt3_height2 + @bheight3 * $alt3_height3 + @bredkite * $alt3_redkite + @bdistance * $alt3_distance + @bcost * $alt3_cost ;" Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite -40.333333 2.666667 41.000000 7.000000 25.000000 -195.000000 bdistance bcost 31.666667 159.333333 initial value 439.444915 iter 2 value 428.104260 iter 3 value 426.363954 iter 4 value 408.391042 iter 5 value 407.458626 iter 6 value 406.519628 iter 7 value 405.998253 iter 8 value 404.922429 iter 9 value 404.215771 iter 10 value 404.153617 iter 11 value 403.563490 iter 12 value 403.562752 iter 12 value 403.562752 iter 12 value 403.562752 final value 403.562752 converged Initial function value: -439.4449 Initial gradient value: bsq bfarm2 bfarm3 bheight2 bheight3 bredkite bdistance bcost -41.33333 22.66667 29.00000 2.00000 22.00000 -60.00000 46.41667 210.33333 initial value 439.444915 iter 2 value 432.947684 iter 3 value 430.749776 iter 4 value 415.103850 iter 5 value 411.209990 iter 6 value 410.317262 iter 7 value 409.381720 iter 8 value 409.080596 iter 9 value 408.130033 iter 10 value 407.189159 iter 11 value 406.111730 iter 12 value 406.107584 iter 12 value 406.107581 iter 12 value 406.107581 final value 406.107581 converged start_estimation: 0.19 sec elapsed =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== \ vars n mean sd median min max range skew kurtosis se =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== est_bsq 1 2 0.13 0.24 0.13 -0.04 0.30 0.34 0 -2.75 0.17 est_bfarm2 2 2 0.41 0.23 0.41 0.25 0.57 0.32 0 -2.75 0.16 est_bfarm3 3 2 0.82 0.10 0.82 0.75 0.89 0.14 0 -2.75 0.07 est_bheight2 4 2 -0.06 0.12 -0.06 -0.14 0.02 0.17 0 -2.75 0.08 est_bheight3 5 2 0.34 0.14 0.34 0.24 0.44 0.20 0 -2.75 0.10 est_bredkite 6 2 -0.06 0.04 -0.06 -0.09 -0.03 0.06 0 -2.75 0.03 est_bdistance 7 2 0.73 0.35 0.73 0.48 0.98 0.50 0 -2.75 0.25 est_bcost 8 2 -0.05 0.02 -0.05 -0.06 -0.03 0.03 0 -2.75 0.01 rob_pval0_bsq 9 2 0.61 0.39 0.61 0.33 0.88 0.56 0 -2.75 0.28 rob_pval0_bfarm2 10 2 0.08 0.11 0.08 0.00 0.16 0.16 0 -2.75 0.08 rob_pval0_bfarm3 11 2 0.00 0.00 0.00 0.00 0.00 0.00 0 -2.75 0.00 rob_pval0_bheight2 12 2 0.61 0.40 0.61 0.33 0.89 0.56 0 -2.75 0.28 rob_pval0_bheight3 13 2 0.10 0.13 0.10 0.01 0.19 0.19 0 -2.75 0.09 rob_pval0_bredkite 14 2 0.04 0.05 0.04 0.00 0.08 0.08 0 -2.75 0.04 rob_pval0_bdistance 15 2 0.00 0.01 0.00 0.00 0.01 0.01 0 -2.75 0.00 rob_pval0_bcost 16 2 0.12 0.13 0.12 0.03 0.21 0.19 0 -2.75 0.09 =================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ==== FALSE 100 total time for simulation and estimation: 3.82 sec elapsed $tic elapsed 51.64 $toc elapsed 55.46 $msg [1] "total time for simulation and estimation" $callback_msg [1] "total time for simulation and estimation: 3.82 sec elapsed" Trying tidyr::pivot_longer for reshaping... No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0 sec elapsed split dataframe into groups: 0.02 sec elapsed for each group calculate utility: 0.51 sec elapsed add random component: 0.04 sec elapsed whole simulate choices: 0.57 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 1 -0.916850205 0.2436800 -0.04063688 -0.916850205 1.26868002 0.009363121 2 2.535410023 -0.2823089 3.29178650 2.535410023 -0.05730887 3.541786505 3 -0.336336699 -0.1260977 -0.55671052 -0.336336699 -0.05109765 -0.206710520 4 -0.004010724 -0.3552747 -0.43508996 -0.004010724 -0.05527468 0.414910041 5 0.831998860 -0.1254224 10.34572980 0.831998860 0.37457758 10.770729800 6 1.480537535 1.8315992 -0.80173196 1.480537535 2.33159921 0.173268039 CHOICE 1 2 2 3 3 2 4 3 5 3 6 2 No preprocess function provided. Proceeding without additional preprocessing. assign keys for bcoeff): 0 sec elapsed dataset preprossed_data exists: FALSE decisiongroups exists: FALSEuser entered manipulations: 0 sec elapsed split dataframe into groups: 0 sec elapsed for each group calculate utility: 0.69 sec elapsed add random component: 0.01 sec elapsed whole simulate choices: 0.7 sec elapsed data has been created First few observations of the dataset ID Choice_situation alt1_sq alt2_farm2 alt2_farm3 alt2_height2 alt2_height3 1 1 14 1 0 1 1 0 2 1 17 1 1 0 0 1 3 1 26 1 1 0 0 0 4 1 64 1 1 0 1 0 5 1 72 1 0 0 0 1 6 1 75 1 0 0 0 1 alt2_redkite alt2_distance alt2_cost alt3_farm2 alt3_farm3 alt3_height2 1 -2.5 1.00 7 1 0 0 2 5.0 0.25 8 0 1 1 3 -2.5 0.00 6 0 1 1 4 -2.5 0.25 9 0 1 0 5 -5.0 0.00 5 1 0 0 6 0.0 1.00 10 0 1 1 alt3_height3 alt3_redkite alt3_distance alt3_cost Block group V_1 V_2 V_3 1 0 2.5 0.25 4 1 1 0 1.025 0.050 2 0 2.5 0.25 10 1 1 0 0.225 0.250 3 0 5.0 0.00 3 1 1 0 0.075 0.350 4 1 5.0 0.50 3 1 1 0 0.300 0.850 5 0 2.5 1.00 4 1 1 0 0.500 0.425 6 0 -5.0 0.25 3 1 1 0 0.500 0.975 e_1 e_2 e_3 U_1 U_2 U_3 CHOICE 1 -0.2389145 1.7724681 4.4821549 -0.2389145 2.7974681 4.5321549 3 2 -0.4547372 -0.6604048 3.2457875 -0.4547372 -0.4354048 3.4957875 3 3 0.1562904 0.1637181 0.1819604 0.1562904 0.2387181 0.5319604 3 4 1.6459510 0.8125847 -0.6681968 1.6459510 1.1125847 0.1818032 1 5 -1.6000830 -0.3147824 2.5993564 -1.6000830 0.1852176 3.0243564 3 6 -0.5995604 -0.6799862 3.0013991 -0.5995604 -0.1799862 3.9763991 3 [ FAIL 0 | WARN 0 | SKIP 0 | PASS 95 ] > > proc.time() user system elapsed 23.85 2.71 58.68