=== Test: test_B_measurement_plus_probit ===
Timestamp: 2026-01-03 12:04:02.045524

--- 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.95768698967458e-05 7.37993389882327e-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.61220280758311 -1.61216735839844 3.54491846716876e-05 2.19885264932442e-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.33253019246149e-05 1.10386121248095e-07 TRUE
7 1 FALSE 14.238857267372 14.2389144897461 5.72223741226452e-05 4.01873149556821e-06 TRUE
8 0.8 FALSE -89.6587670517737 -89.6587219238281 4.51279455404574e-05 5.03330234606701e-07 TRUE
9 0.4 FALSE 166.638899989865 166.638885498047 1.44918184048493e-05 8.69654064328167e-08 TRUE
10 0.5 FALSE -35.1424536976328 -35.1424179077148 3.57899179306287e-05 1.01842502768632e-06 TRUE
11 0.7 FALSE 8.08459768995568 8.08457183837891 2.58515767779244e-05 3.19764327594967e-06 TRUE
12 0.9 FALSE -0.187613426340355 -0.187545776367188 6.76499731673275e-05 0.00036071179248995 TRUE

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

Summary of relative errors:
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
2.300e-11 1.054e-08 7.414e-08 1.012e-06 2.487e-07 2.255e-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.00068506543006 2.04644428614612 0.0528153430626755 2.04644428610845 0.0528153430560104 0.879371096596018 0.879371095993687
T1_sigma 0.5 1.06870392027954 0.491276133543898 0.0255165631771541 0.491276133549505 0.0255165631770768 -0.341890339836722 -0.341890339618022
T2_int 1.5 1.51739222472919 1.57077006251867 0.062868273297112 1.57077006247639 0.0628682732902544 1.12568802684015 1.12568802629035
T2_lambda 1.2 0.5 1.16649359307758 0.045560913890993 1.16649359310061 0.0455609138925417 -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.0420137455177503 1.26147747193596 1.26147747140792
T3_lambda 0.8 0.5 0.788350080362606 0.0301353178714942 0.788350080378622 0.0301353178724772 -0.386586917286633 -0.386586916742561
T3_sigma 0.4 0.85354121047643 0.410690575965902 0.0192165384267297 0.410690575962162 0.0192165384267939 0.556321629239519 0.556321629043036
y_int 0.5 0.282264679632654 0.403362952331385 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.50715942072891
y_loading 0.9 0.5 0.91839624959089 0.10115940578969 0.91839624961715 0.101159405792804 0.181854069300641 0.18185406955463

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
