=== Test: test_E_roy_model ===
Timestamp: 2025-11-30 08:02:40.168173

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

param_idx param_value fixed analytical finite_diff abs_error rel_error pass
1 1 TRUE -122.178904798244 -122.179077148438 0.000172350193125226 1.41063590549006e-06 TRUE
2 2 FALSE 56.0649395696246 56.0643920898438 0.000547479780856008 9.76519606203286e-06 TRUE
3 0.5 FALSE 264.548006310453 264.546936035156 0.00107027529662673 4.0456915232785e-06 TRUE
4 1.5 FALSE 56.0302242626977 56.0306396484375 0.000415385739771068 7.41354627356377e-06 TRUE
5 1.2 FALSE -84.4582106671152 -84.4586690266927 0.000458359577507395 5.42702818774627e-06 TRUE
6 0.6 FALSE 153.256977211351 153.257446289062 0.000469077711500177 3.06071726273866e-06 TRUE
7 1 FALSE -112.059828687906 -112.059387207031 0.000441480874499689 3.93970452188934e-06 TRUE
8 0.8 FALSE 55.0348916753441 55.0347290039062 0.000162671437891504 2.95579610976113e-06 TRUE
9 0.4 FALSE 262.739593366027 262.73974609375 0.000152727722934287 5.8128899492729e-07 TRUE
10 2 FALSE 8.12052641974637 8.12051391601562 1.25037307405762e-05 1.53977086547636e-06 TRUE
11 0.5 FALSE -19.1244282462222 -19.1250610351562 0.000632788934041173 3.30868974942334e-05 TRUE
12 0.3 FALSE 20.8591028747895 20.8582153320312 0.000887542758224669 4.2551231929306e-05 TRUE
13 0.6 FALSE 50.6788666262774 50.6788940429688 2.74166913314389e-05 5.40988351249206e-07 TRUE
14 2.5 FALSE -31.4320527346892 -31.4321044921875 5.17574982943358e-05 1.64664438256752e-06 TRUE
15 0.6 FALSE 0.695557385180291 0.695068359375 0.000489025805290644 0.000703565050393564 TRUE
16 1 FALSE -15.9213930445081 -15.921142578125 0.000250466383121761 1.57316839474757e-05 TRUE
17 0.7 FALSE 59.6875798281495 59.6878051757812 0.00022534763179749 3.77543840209635e-06 TRUE
18 0 FALSE -25.0484406006829 -25.0497436523438 0.00130305166087652 5.20185627031198e-05 TRUE
19 0.4 FALSE 24.2263033688519 24.2257690429688 0.000534325883148057 2.20560958126999e-05 TRUE
20 0.8 FALSE -1.18401289565011 -1.18463134765625 0.000618452006142078 0.000522062840364357 TRUE

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

Summary of relative errors:
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
0.0000000 0.0000000 0.0000001 0.0053053 0.0000006 1.1139862 

--- 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.865589042735783 0.0427716625554556 0.86560657405245 0.0427749865810604 -3.14252355961021 -3.14186950574184
T1_int 2 2.02038972109081 2.01741352574663 0.0290208732009853 2.0174116552639 0.029021747573591 0.600034520878419 0.599951991855354
T1_sigma 0.5 1.10793992274121 0.52281969732635 0.0117382963555145 0.522819467198158 0.0117383153916983 1.94403826886087 1.94401551131406
T2_int 1.5 1.52614336474081 1.52252857935237 0.0350644215094393 1.52252632137184 0.0350653861887823 0.642491117279921 0.642409048358064
T2_lambda 1.2 0.5 1.21456589287581 0.0224441954278384 1.21456124779598 0.0224441758105579 0.648982625491694 0.64877623125428
T2_sigma 0.6 1.33607075774289 0.61441418275684 0.0141608427145824 0.614415233080263 0.014160854931788 1.01789018121052 1.01796347393571
T3_int 1 1.00174049662065 0.999279735569644 0.0237725166177049 0.999278198472515 0.0237731756696128 -0.0302981986273742 -0.0303620154714016
T3_lambda 0.8 0.5 0.826814353772063 0.0151556246807757 0.82681118517873 0.0151556151737726 1.76926747243064 1.76905951169355
T3_sigma 0.4 0.904431294644681 0.407064021995501 0.00961349502349008 0.407064769187983 0.00961351503366377 0.734802689161501 0.734878882827413
w0_int 2 2.00496948319753 2.00496948319753 0.0199335442146991 2.00496948319753 0.0199335442146991 0.249302539679272 0.249302539679294
w0_beta1 0.5 0.49350336141093 0.493503361410929 0.0191626081881972 0.493503361410929 0.0191626081881972 -0.339026844637588 -0.339026844637591
w0_beta2 0.3 0.308455847951859 0.308455847951858 0.0195701556442255 0.308455847951858 0.0195701556442255 0.432078727710753 0.432078727710756
w0_sigma 0.6 0.609742586599282 0.608839040654738 0.0135264170151672 0.608839040654737 0.0135264170151672 0.653465041394657 0.65346504139465
w1_int 2.5 2.9831246092485 2.49001219595026 0.0398181281858063 2.4900091610186 0.0398189625633405 -0.250835599381494 -0.250906561553743
w1_beta1 0.6 0.561683678793291 0.601685647928338 0.0250311062064046 0.601685434532314 0.0250311201998357 0.0673421268096839 0.0673335639339383
w1_lambda 1 0.5 1.03011481383709 0.0323348620093119 1.03011181901728 0.0323347708848912 0.931341962381586 0.93125196787294
w1_sigma 0.7 1.13196449740323 0.713163985675504 0.0188430398350264 0.713164048349022 0.0188430508205262 0.698612633139705 0.698615551929718
s_int 0 -0.00886275628876305 -0.0171480171658689 0.0387867147788916 -0.0171497370478195 0.0387874773429987 -0.442110585122334 -0.442146234367447
s_beta1 0.4 0.335219551982137 0.428262913606913 0.0350566316979891 0.428265878612221 0.0350569345262019 0.806207334760415 0.806284947450112
s_loading 0.8 0.5 0.834808012930335 0.0566524464287718 0.834822375318402 0.0566549577792456 0.614413235871445 0.614639506997531

Likelihood comparison:
source loglik convergence
True parameters -10040.7274749044 NA
Est (default init) -10024.5996223354 0
Est (true init) -10024.5996223297 0

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