=== Test: test_B_measurement_plus_probit ===
Timestamp: 2025-12-02 16:50:00.949777

--- 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.378936767578 0.000112465053447863 9.2656153071448e-07 TRUE
2 2 FALSE -29.5515537243072 -29.5515785217285 2.47974213074542e-05 8.39123408897474e-07 TRUE
3 0.5 FALSE 142.174148471172 142.174163818359 1.53471873147737e-05 1.07946387041046e-07 TRUE
4 1.5 FALSE -1.61220280758314 -1.61216735839844 3.54491847009974e-05 2.19885265114246e-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.72223741350797e-05 4.01873149644149e-06 TRUE
8 0.8 FALSE -89.6587670517736 -89.6587219238281 4.5127945483614e-05 5.03330233972704e-07 TRUE
9 0.4 FALSE 166.638899989865 166.638885498047 1.44918184616927e-05 8.69654067739341e-08 TRUE
10 0.5 FALSE -35.1424536976328 -35.1424179077148 3.57899179093124e-05 1.01842502707975e-06 TRUE
11 0.7 FALSE 8.08459768995569 8.08457183837891 2.58515767832534e-05 3.19764327660884e-06 TRUE
12 0.9 FALSE -0.187613426340346 -0.187545776367188 6.76499731580571e-05 0.00036071179244052 TRUE

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

Summary of relative errors:
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
0.0000000 0.0000000 0.0000001 0.0152073 0.0000003 1.1860900 

--- 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.828628404803606 0.0776225179629021 0.828620293389289 0.0776243081786413 -2.20775619876563 -2.20780977804408
T1_int 2 2.00068506543006 2.04644617543013 0.0535402510288676 2.04644506912405 0.0535400065212587 0.867500143118265 0.867483441669093
T1_sigma 0.5 1.06870392027954 0.491274865254424 0.0254640631876184 0.491276404535721 0.0254639791567182 -0.342645031992328 -0.342585713355691
T2_int 1.5 1.51739222472919 1.57077205682603 0.0636287406534787 1.57077098553534 0.063628621890022 1.11226555954418 1.11225079898265
T2_lambda 1.2 0.5 1.16648901418378 0.0461687106375497 1.16649380248761 0.0461692873786837 -0.725837593328091 -0.725724814367883
T2_sigma 0.6 1.28130771654586 0.644889606306598 0.0288297340958376 0.6448894249376 0.028829757860393 1.55705932484058 1.55705175031214
T3_int 1 1.01692510815933 1.05300073814591 0.0425330423262368 1.05300001817519 0.0425329621989096 1.24610738492176 1.24609280508911
T3_lambda 0.8 0.5 0.788346916914414 0.0305487325532163 0.788350241245286 0.0305491243160465 -0.381458807342849 -0.381345096317374
T3_sigma 0.4 0.85354121047643 0.41069107542625 0.0193629018342194 0.410690793137944 0.0193629056874776 0.552142210800024 0.552127522103137
y_int 0.5 0.282264679632654 0.40336070205523 0.0862727915400069 0.403369870989876 0.0862757459083081 -1.12015962645599 -1.12001499370195
y_beta1 0.7 0.520294087806175 0.741814541174801 0.0879611451473852 0.741833480834416 0.0879645119442024 0.475375134154261 0.475572249647128
y_loading 0.9 0.5 0.918371492647728 0.122025744278331 0.918431353337047 0.122035503945561 0.150554235553964 0.151032713768848

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

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