=== Test: test_B_measurement_plus_probit ===
Timestamp: 2026-04-12 15:15:35.401824

--- Gradient Check ---
Pass: TRUE
Max error: 3.61e-04

param_idx param_value fixed analytical finite_diff abs_error rel_error pass
1 1 TRUE -121.379049232632 -121.378967285156 8.19474753654958e-05 6.75137358624713e-07 TRUE
2 2 FALSE -29.5515537243072 -29.5515785217285 2.47974213465341e-05 8.39123410219903e-07 TRUE
3 0.5 FALSE 142.174148471172 142.17414855957 8.83981101651443e-08 6.21759377923096e-10 TRUE
4 1.5 FALSE -1.61220280758315 -1.61216735839844 3.5449184713654e-05 2.19885265192753e-05 TRUE
5 1.2 FALSE -83.5505264698014 -83.5506312052409 0.00010473543945011 1.25355653140224e-06 TRUE
6 0.6 FALSE 211.306449453018 211.30647277832 2.33253020383017e-05 1.10386121786113e-07 TRUE
7 1 FALSE 14.2388572673719 14.2389221191406 6.48517686805405e-05 4.55454198975945e-06 TRUE
8 0.8 FALSE -89.6587670517737 -89.6587219238281 4.51279455973008e-05 5.03330235240699e-07 TRUE
9 0.4 FALSE 166.638899989865 166.638870239258 2.97506074389275e-05 1.7853342018109e-07 TRUE
10 0.5 FALSE -35.1424536976328 -35.1424102783203 4.34193124618787e-05 1.2355246016994e-06 TRUE
11 0.7 FALSE 8.08459768995569 8.08457946777344 1.82221822502271e-05 2.25394311761842e-06 TRUE
12 0.9 FALSE -0.187613426340356 -0.187545776367188 6.76499731682156e-05 0.000360711792494686 TRUE

--- Hessian Check ---
Pass: TRUE
Max error: 4.36e-05

Summary of relative errors:
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
1.090e-10 1.747e-08 9.320e-08 1.144e-06 2.311e-07 4.356e-05 

--- Estimation Comparison ---
Default init converged: TRUE
True init converged: TRUE
Default estimates reasonable: TRUE
True init estimates reasonable: TRUE

Parameter estimates:
parameter true_value default_init est_default se_default est_true_init se_true_init z_default z_true_init
f_var 1 1 0.82861716217914 0.0643465597508 0.828617162057253 0.0643465597331137 -2.66343435429319 -2.66343435691948
T1_int 2 2.00068506543005 2.04644428614612 0.0528153430626755 2.04644428610845 0.0528153430560103 0.879371096596018 0.879371095993689
T1_sigma 0.5 1.06870392027954 0.491276133543898 0.0255165631771541 0.491276133549504 0.0255165631770768 -0.34189033983672 -0.341890339618024
T2_int 1.5 1.51739222472919 1.57077006251867 0.0628682732971121 1.57077006247639 0.0628682732902542 1.12568802684015 1.12568802629035
T2_lambda 1.2 0.5 1.16649359307758 0.045560913890993 1.16649359310061 0.0455609138925416 -0.735419991850538 -0.735419991320092
T2_sigma 0.6 1.28130771654586 0.644889075593582 0.0286545327684411 0.644889075586082 0.0286545327687295 1.56656107277454 1.56656107249702
T3_int 1 1.01692510815933 1.05299939348817 0.0420137455224061 1.05299939346011 0.0420137455177502 1.26147747193596 1.26147747140792
T3_lambda 0.8 0.5 0.788350080362606 0.0301353178714941 0.788350080378622 0.0301353178724772 -0.386586917286637 -0.386586916742565
T3_sigma 0.4 0.85354121047643 0.410690575965902 0.0192165384267297 0.410690575962162 0.0192165384267939 0.556321629239519 0.556321629043036
y_int 0.5 0.282264679632653 0.403362952331385 0.0821874418435727 0.403362952302084 0.0821874418404769 -1.17581281885551 -1.17581281925632
y_beta1 0.7 0.520294087806176 0.741821624306835 0.0824624814171459 0.741821624307387 0.0824624814171431 0.507159420722203 0.50715942072891
y_loading 0.9 0.5 0.91839624959089 0.10115940578969 0.91839624961715 0.101159405792804 0.181854069300642 0.181854069554629

Likelihood comparison:
source loglik convergence
True parameters -1952.1638495819 NA
Est (default init) -1939.20970387039 0
Est (true init) -1939.20970387039 0

--- Overall Result ---
Test passed: TRUE
