=== Test: test_B_measurement_plus_probit ===
Timestamp: 2026-01-03 10:38:28.683745

--- 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.378959655762 8.95768699251676e-05 7.37993390116484e-07 TRUE
2 2 FALSE -29.5515537243072 -29.5515785217285 2.47974213216651e-05 8.39123409378357e-07 TRUE
3 0.5 FALSE 142.174148471172 142.17414855957 8.83981954302726e-08 6.21759977646247e-10 TRUE
4 1.5 FALSE -1.61220280758313 -1.61216735839844 3.54491846956684e-05 2.19885265081191e-05 TRUE
5 1.2 FALSE -83.5505264698014 -83.5506121317546 8.56619531219849e-05 1.02527020372874e-06 TRUE
6 0.6 FALSE 211.306449453018 211.30647277832 2.33253019530366e-05 1.10386121382599e-07 TRUE
7 1 FALSE 14.238857267372 14.2389144897461 5.72223741226452e-05 4.01873149556821e-06 TRUE
8 0.8 FALSE -89.6587670517736 -89.6587219238281 4.51279454978248e-05 5.03330234131203e-07 TRUE
9 0.4 FALSE 166.638899989865 166.638885498047 1.4491818433271e-05 8.69654066033754e-08 TRUE
10 0.5 FALSE -35.1424536976328 -35.1424179077148 3.57899179235233e-05 1.01842502748413e-06 TRUE
11 0.7 FALSE 8.08459768995568 8.08457183837891 2.58515767725953e-05 3.1976432752905e-06 TRUE
12 0.9 FALSE -0.187613426340351 -0.187545776367188 6.76499731631086e-05 0.000360711792467455 TRUE

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

Summary of relative errors:
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
4.360e-10 1.059e-08 7.455e-08 1.142e-06 2.362e-07 2.502e-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.0643465597508001 0.828617162057253 0.0643465597331137 -2.66343435429318 -2.66343435691948
T1_int 2 2.00068506543006 2.04644428614612 0.0528153430626754 2.04644428610845 0.0528153430560104 0.879371096596028 0.879371095993687
T1_sigma 0.5 1.06870392027954 0.491276133543898 0.0255165631771541 0.491276133549504 0.0255165631770768 -0.341890339836722 -0.341890339618024
T2_int 1.5 1.51739222472919 1.57077006251867 0.0628682732971119 1.57077006247639 0.0628682732902544 1.12568802684015 1.12568802629035
T2_lambda 1.2 0.5 1.16649359307758 0.045560913890993 1.16649359310061 0.0455609138925416 -0.735419991850538 -0.735419991320098
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.042013745522406 1.05299939346011 0.0420137455177503 1.26147747193596 1.26147747140791
T3_lambda 0.8 0.5 0.788350080362606 0.0301353178714942 0.788350080378622 0.0301353178724772 -0.386586917286633 -0.386586916742565
T3_sigma 0.4 0.85354121047643 0.410690575965902 0.0192165384267297 0.410690575962162 0.0192165384267939 0.556321629239518 0.556321629043036
y_int 0.5 0.282264679632654 0.403362952331386 0.0821874418435727 0.403362952302084 0.082187441840477 -1.17581281885551 -1.17581281925632
y_beta1 0.7 0.520294087806175 0.741821624306835 0.0824624814171459 0.741821624307387 0.0824624814171431 0.507159420722203 0.507159420728909
y_loading 0.9 0.5 0.91839624959089 0.10115940578969 0.918396249617149 0.101159405792804 0.181854069300642 0.181854069554628

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
