Last updated on 2026-05-14 02:52:52 CEST.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 0.3.2 | 5.56 | 146.83 | 152.39 | ERROR | |
| r-devel-linux-x86_64-debian-gcc | 0.3.2 | 3.79 | 133.06 | 136.85 | OK | |
| r-devel-linux-x86_64-fedora-clang | 0.3.2 | 10.00 | 224.95 | 234.95 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 0.3.2 | 8.00 | 250.23 | 258.23 | OK | |
| r-devel-windows-x86_64 | 0.3.2 | 7.00 | 196.00 | 203.00 | OK | |
| r-patched-linux-x86_64 | 0.3.2 | 4.44 | 144.68 | 149.12 | OK | |
| r-release-linux-x86_64 | 0.3.2 | 3.83 | 142.23 | 146.06 | OK | |
| r-release-macos-arm64 | 0.3.2 | 1.00 | 59.00 | 60.00 | OK | |
| r-release-macos-x86_64 | 0.3.2 | 4.00 | 227.00 | 231.00 | OK | |
| r-release-windows-x86_64 | 0.3.2 | 7.00 | 200.00 | 207.00 | OK | |
| r-oldrel-macos-arm64 | 0.3.2 | 1.00 | 54.00 | 55.00 | OK | |
| r-oldrel-macos-x86_64 | 0.3.2 | 3.00 | 200.00 | 203.00 | OK | |
| r-oldrel-windows-x86_64 | 0.3.2 | 11.00 | 254.00 | 265.00 | OK |
Version: 0.3.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [40s/71s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # 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 (true utility):
$u1
$u1$v1
V.1 ~ bsq * alt1.sq
<environment: 0x5572272b7228>
$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
<environment: 0x557227314a90>
$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
<environment: 0x55722737e918>
'simple' is deprecated and will be removed in the future. Use 'exact' instead.
bcoeff_lookup already exists; skipping modification.
Utility function used in simulation (true utility):
$u1
$u1$v1
V.1 ~ bsq * alt1.sq
<environment: 0x557224f54a10>
$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
<environment: 0x557224df76b8>
$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
<environment: 0x557224da39d8>
Saving _problems/test-sim_all-48.R
'simple' is deprecated and will be removed in the future. Use 'exact' instead.
bcoeff_lookup already exists; skipping modification.
Utility function used in simulation (true utility):
$u1
$u1$v1
V.1 ~ bsq * alt1.sq
<environment: 0x5572299f9ac8>
$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
<environment: 0x557229a341e0>
$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
<environment: 0x557229a755d8>
No preprocess function provided. Proceeding without additional preprocessing.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
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.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
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
Summary table:
=================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ====
\ 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
=================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ====
Power results:
FALSE
100
total time for simulation and estimation: 15.531 sec elapsed
$tic
elapsed
7.941
$toc
elapsed
23.472
$msg
[1] "total time for simulation and estimation"
$callback_msg
[1] "total time for simulation and estimation: 15.531 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 (true utility):
$u1
$u1$v1
V.1 ~ bsq * alt1.sq
<environment: 0x5572237d6fc8>
$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
<environment: 0x55722375e440>
$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
<environment: 0x5572234a7ba0>
No preprocess function provided. Proceeding without additional preprocessing.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
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.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
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
Summary table:
=================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ====
\ 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
=================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ====
Power results:
FALSE
100
total time for simulation and estimation: 4.362 sec elapsed
$tic
elapsed
29.918
$toc
elapsed
34.28
$msg
[1] "total time for simulation and estimation"
$callback_msg
[1] "total time for simulation and estimation: 4.362 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 (true utility):
$u1
$u1$v1
V.1 ~ bsq * alt1.sq
<environment: 0x557232076438>
$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
<environment: 0x5572328afdc8>
$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
<environment: 0x5572315b5408>
No preprocess function provided. Proceeding without additional preprocessing.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
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.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
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
Summary table:
=================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ====
\ 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
=================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ====
Power results:
FALSE
100
total time for simulation and estimation: 4.381 sec elapsed
$tic
elapsed
38.156
$toc
elapsed
42.537
$msg
[1] "total time for simulation and estimation"
$callback_msg
[1] "total time for simulation and estimation: 4.381 sec elapsed"
Trying tidyr::pivot_longer for reshaping...
bcoeff_lookup already exists; skipping modification.
Utility function used in simulation (true utility):
$u1
$u1$v1
V.1 ~ bsq * alt1.sq
<environment: 0x557226748d50>
$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
<environment: 0x5572265cddb8>
$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
<environment: 0x5572264d9848>
No preprocess function provided. Proceeding without additional preprocessing.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
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.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
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
Summary table:
=================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ====
\ 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
=================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ====
Power results:
FALSE
100
total time for simulation and estimation: 3.955 sec elapsed
$tic
elapsed
46.165
$toc
elapsed
50.12
$msg
[1] "total time for simulation and estimation"
$callback_msg
[1] "total time for simulation and estimation: 3.955 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 (true utility):
$u1
$u1$v1
V.1 ~ bsq * alt1.sq
<environment: 0x557232fe43b0>
$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
<environment: 0x5572315e3140>
$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
<environment: 0x557232269070>
No preprocess function provided. Proceeding without additional preprocessing.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
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.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
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
Summary table:
=================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ====
\ 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
=================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ====
Power results:
FALSE
100
total time for simulation and estimation: 3.663 sec elapsed
$tic
elapsed
54.174
$toc
elapsed
57.837
$msg
[1] "total time for simulation and estimation"
$callback_msg
[1] "total time for simulation and estimation: 3.663 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 (true utility):
$u1
$u1$v1
V.1 ~ bsq * alt1.sq
<environment: 0x55722e781468>
$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
<environment: 0x5572325d1ce8>
$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
<environment: 0x55722ec498b0>
No preprocess function provided. Proceeding without additional preprocessing.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
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.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
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
Summary table:
=================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ====
\ 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
=================== ==== === ===== ==== ====== ===== ===== ===== ==== ======== ====
Power results:
FALSE
100
total time for simulation and estimation: 4.724 sec elapsed
$tic
elapsed
61.332
$toc
elapsed
66.056
$msg
[1] "total time for simulation and estimation"
$callback_msg
[1] "total time for simulation and estimation: 4.724 sec elapsed"
Trying tidyr::pivot_longer for reshaping...
Attaching package: 'rlang'
The following object is masked from 'package:formula.tools':
env
No preprocess function provided. Proceeding without additional preprocessing.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
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.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
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
No preprocess function provided. Proceeding without additional preprocessing.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
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.0859712 0.5355647 2.6503363 -1.0859712 1.5605647 2.70033632 3
2 0.5041186 -1.1909340 -0.1995641 0.5041186 -0.9659340 0.05043594 1
3 1.4776004 0.4294723 0.4423244 1.4776004 0.5044723 0.79232440 1
4 0.7702448 1.4010221 0.2645433 0.7702448 1.7010221 1.11454334 2
5 0.2266859 0.8015626 -0.4617708 0.2266859 1.3015626 -0.03677078 2
6 -0.4269866 -1.0765119 -0.7087961 -0.4269866 -0.5765119 0.26620389 3
No preprocess function provided. Proceeding without additional preprocessing.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
data has been created
First few observations of the dataset
ID price quality group V_1 V_2 e_1 e_2 U_1 U_2
1 1 10 1 1 -8 0 -0.35340345 3.17208222 -8.353403 3.17208222
2 1 20 2 1 -16 0 0.20291416 4.46064963 -15.797086 4.46064963
3 2 10 1 1 -8 0 -0.18312219 0.90720145 -8.183122 0.90720145
4 2 20 2 1 -16 0 0.05591159 1.97616791 -15.944088 1.97616791
5 3 10 1 1 -8 0 -0.75957473 -0.01890643 -8.759575 -0.01890643
6 3 20 2 1 -16 0 0.34116893 -0.26002551 -15.658831 -0.26002551
CHOICE
1 2
2 2
3 2
4 2
5 2
6 2
No preprocess function provided. Proceeding without additional preprocessing.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
data has been created
First few observations of the dataset
ID price quality group V_1 V_2 e_1 e_2 U_1 U_2
1 1 10 1 1 -8 0 0.7276158 0.02194412 -7.272384 0.02194412
2 1 20 2 1 -16 0 -0.7634077 0.36185622 -16.763408 0.36185622
3 2 10 1 1 -8 0 1.2964861 -0.50210169 -6.703514 -0.50210169
4 2 20 2 1 -16 0 -0.3674067 0.07907622 -16.367407 0.07907622
5 3 10 1 1 -8 0 0.5000695 0.02123252 -7.499931 0.02123252
6 3 20 2 1 -16 0 0.8437785 2.46023369 -15.156221 2.46023369
CHOICE
1 2
2 2
3 2
4 2
5 2
6 2
Preprocess function has been executed.
dataset preprossed_data exists: TRUE
decisiongroups exists: FALSE
data has been created
First few observations of the dataset
ID price quality extra group V_1 V_2 e_1 e_2 U_1
1 1 10 1 99 1 -8 0 0.4508202 0.5263887 -7.549180
2 2 20 2 NA 1 -16 0 0.2316247 -1.3635191 -15.768375
3 3 10 1 NA 1 -8 0 0.7610967 -0.9229218 -7.238903
4 4 20 2 NA 1 -16 0 7.2008061 -0.8090377 -8.799194
5 5 10 1 NA 1 -8 0 1.4483780 -0.7722009 -6.551622
6 6 20 2 NA 1 -16 0 -0.5915992 0.4644646 -16.591599
U_2 CHOICE
1 0.5263887 2
2 -1.3635191 2
3 -0.9229218 2
4 -0.8090377 2
5 -0.7722009 2
6 0.4644646 2
No preprocess function provided. Proceeding without additional preprocessing.
dataset preprossed_data exists: FALSE
decisiongroups exists: FALSE
data has been created
First few observations of the dataset
ID price quality group V_1 V_2 e_1 e_2 U_1 U_2
1 1 30 1 1 -28 0 0.5137246 0.07582465 -27.48628 0.07582465
2 1 60 2 1 -56 0 1.4090331 0.63032739 -54.59097 0.63032739
3 2 30 1 1 -28 0 0.5599352 -0.15469602 -27.44006 -0.15469602
4 2 60 2 1 -56 0 -0.5637795 -0.30462601 -56.56378 -0.30462601
5 3 30 1 1 -28 0 1.1402039 2.25598897 -26.85980 2.25598897
6 3 60 2 1 -56 0 0.4980636 4.09740650 -55.50194 4.09740650
CHOICE
1 2
2 2
3 2
4 2
5 2
6 2
No preprocess function provided. Proceeding without additional preprocessing.
dataset preprossed_data exists: FALSE
decisiongroups exists: TRUE
Group counts:
1 2
5 5
data has been created
First few observations of the dataset
ID price quality group V_1 V_2 e_1 e_2 U_1 U_2
1 1 10 1 1 -8 0 -0.1433133 3.0529421 -8.143313 3.0529421
2 2 20 2 1 -16 0 2.9056360 0.6036609 -13.094364 0.6036609
3 3 10 1 1 -8 0 3.4981789 -0.5362750 -4.501821 -0.5362750
4 4 20 2 1 -16 0 0.1540450 -0.5041709 -15.845955 -0.5041709
5 5 10 1 1 -8 0 -1.0766575 -0.6678167 -9.076657 -0.6678167
6 6 20 2 2 -14 0 2.3479694 -1.0096232 -11.652031 -1.0096232
CHOICE
1 2
2 2
3 2
4 2
5 2
6 2
No preprocess function provided. Proceeding without additional preprocessing.
dataset preprossed_data exists: FALSE
decisiongroups exists: TRUE
Group counts:
1 2
5 5
data has been created
First few observations of the dataset
ID price quality group V_1 V_2 e_1 e_2 U_1 U_2
1 1 10 1 1 -8 0 -0.5752063 0.07077412 -8.575206 0.07077412
2 2 20 2 1 -16 0 -0.3032742 -1.09806637 -16.303274 -1.09806637
3 3 10 1 1 -8 0 -0.4345868 1.73677796 -8.434587 1.73677796
4 4 20 2 1 -16 0 1.6307008 3.80148488 -14.369299 3.80148488
5 5 10 1 1 -8 0 -0.7351926 -0.18865626 -8.735193 -0.18865626
6 6 20 2 2 -12 0 -0.2691585 2.00870412 -12.269159 2.00870412
CHOICE
1 2
2 2
3 2
4 2
5 2
6 2
No preprocess function provided. Proceeding without additional preprocessing.
No preprocess function provided. Proceeding without additional preprocessing.
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 111 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-sim_all.R:48:5'): seed setting makes code reproducible ─────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `purrr::map(designfile, sim_choice, no_sim = nosim, respondents = resps, designtype = designtype, destype = destype, u = u, bcoeff = bcoeff, decisiongroups = decisiongroups, manipulations = manipulations, estimate = estimate, chunks = chunks, utility_transform_type = utility_transform_type, mode = mode, preprocess_function = preprocess_function, savefile = NULL)`: i In index: 1.
Caused by error in `serverSocket()`:
! creation of server socket failed: port 11585 cannot be opened
Backtrace:
▆
1. ├─simulateDCE::sim_all(...) at test-sim_all.R:48:5
2. │ ├─... %>% stats::setNames(designname)
3. │ └─purrr::map(...)
4. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
5. │ ├─purrr:::with_indexed_errors(...)
6. │ │ └─base::withCallingHandlers(...)
7. │ ├─purrr:::call_with_cleanup(...)
8. │ └─simulateDCE (local) .f(.x[[i]], ...)
9. │ └─1:no_sim %>% ...
10. ├─stats::setNames(., designname)
11. ├─simulateDCE (local) switchmap(...)
12. │ └─future::plan("multisession")
13. │ └─future (local) plan_set(...)
14. │ └─future:::plan_init(stack[[1]], debug = debug)
15. │ └─future:::makeFutureBackend(evaluator, debug = debug)
16. │ └─base::do.call(factory, args = args, envir = envir)
17. ├─future (local) `<fn>`(...)
18. │ └─future::ClusterFutureBackend(...)
19. │ └─clusterRegistry$startCluster(...)
20. │ └─future (local) makeCluster(workers, ...)
21. │ ├─base::do.call(makeClusterPSOCK, args = args, quote = TRUE)
22. │ └─parallelly (local) `<fn>`(base::quote(2L), rscript_libs = base::quote(`<chr>`))
23. │ └─base::serverSocket(port = port)
24. └─base::.handleSimpleError(...)
25. └─purrr (local) h(simpleError(msg, call))
26. └─cli::cli_abort(...)
27. └─rlang::abort(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 111 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang