=== Test: test_E_roy_model ===
Timestamp: 2026-04-12 19:38:39.88674

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

param_idx param_value fixed analytical finite_diff abs_error rel_error pass
1 1 TRUE -122.178904798244 -122.179077148438 0.000172350193068382 1.41063590502481e-06 TRUE
2 2 FALSE 56.0649395696247 56.0643920898438 0.000547479780919957 9.76519606317349e-06 TRUE
3 0.5 FALSE 264.548006310453 264.546813964844 0.00119234560924042 4.50712519032217e-06 TRUE
4 1.5 FALSE 56.0302242626977 56.0305989583333 0.000374695635649402 6.68733946478141e-06 TRUE
5 1.2 FALSE -84.4582106671152 -84.4587198893229 0.000509222207682569 6.02924373409718e-06 TRUE
6 0.6 FALSE 153.256977211351 153.257446289062 0.000469077711301225 3.0607172614405e-06 TRUE
7 1 FALSE -112.059828687906 -112.059448242188 0.000380445718207056 3.39503472643218e-06 TRUE
8 0.8 FALSE 55.0348916753442 55.0347290039062 0.000162671437941242 2.95579611066488e-06 TRUE
9 0.4 FALSE 262.739593366027 262.73974609375 0.000152727722593227 5.81288993629197e-07 TRUE
10 2 FALSE 8.12052641974634 8.12054443359375 1.80138474075164e-05 2.21830538023968e-06 TRUE
11 0.5 FALSE -19.1244282462222 -19.1250610351562 0.000632788934002093 3.30868974921901e-05 TRUE
12 0.3 FALSE 20.8591028747895 20.858154296875 0.000948577914517301 4.5477557650411e-05 TRUE
13 0.6 FALSE 50.6788666262774 50.6788940429688 2.74166913456497e-05 5.40988351529616e-07 TRUE
14 2.5 FALSE -31.4320527346892 -31.4321044921875 5.17574983334157e-05 1.64664438381083e-06 TRUE
15 0.6 FALSE 0.695557385180266 0.69512939453125 0.000427990649015886 0.000615699253093008 TRUE
16 1 FALSE -15.9213930445081 -15.921142578125 0.000250466383103998 1.573168394636e-05 TRUE
17 0.7 FALSE 59.6875798281495 59.6878051757812 0.000225347631783279 3.77543840185827e-06 TRUE
18 0 FALSE -25.0484406006829 -25.0497436523438 0.00130305166089428 5.20185627038289e-05 TRUE
19 0.4 FALSE 24.2263033688519 24.2257080078125 0.000595361039408715 2.45755888420977e-05 TRUE
20 0.8 FALSE -1.18401289565013 -1.18463134765625 0.00061845200611832 0.000522062840344302 TRUE

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

Summary of relative errors:
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
0.000e+00 1.035e-08 1.012e-07 6.078e-07 5.086e-07 1.444e-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.865592496290088 0.0334226672693289 0.865592497407407 0.0334226673952236 -4.02144755913164 -4.02144751055391
T1_int 2 2.02038972109081 2.01741285816208 0.0288019593186111 2.01741285742644 0.0288019593755867 0.604572000448319 0.604571973710909
T1_sigma 0.5 1.10793992274121 0.522819800960909 0.0117510541912712 0.522819801009633 0.0117510541916348 1.9419364926306 1.94193649671687
T2_int 1.5 1.52614336474081 1.52252776927636 0.034799385480027 1.52252776836184 0.0347993855488215 0.64736112335353 0.647361095793809
T2_lambda 1.2 0.5 1.21456565903581 0.0220120018761606 1.21456565900136 0.0220120018780254 0.661714419149838 0.661714417528887
T2_sigma 0.6 1.33607075774289 0.614414548274963 0.0140216702885456 0.614414548308325 0.0140216702873702 1.02801934279817 1.02801934526366
T3_int 1 1.00174049662065 0.999279184080478 0.0235913447081422 0.999279183462831 0.023591344754888 -0.0305542531991875 -0.0305542793197222
T3_lambda 0.8 0.5 0.826814202777667 0.0148672800456889 0.826814202749913 0.0148672800468289 1.80357151377141 1.80357151176634
T3_sigma 0.4 0.904431294644681 0.407064261815611 0.0095156982176112 0.407064261826807 0.00951569821652998 0.742379765946819 0.742379767207747
w0_int 2 2.00496948319753 2.00496948319753 0.0199335442146991 2.00496948319753 0.0199335442146991 0.249302539679294 0.249302539679272
w0_beta1 0.5 0.493503361410929 0.493503361410929 0.0191626081881972 0.493503361410929 0.0191626081881972 -0.339026844637588 -0.339026844637588
w0_beta2 0.3 0.308455847951858 0.308455847951858 0.0195701556442255 0.308455847951858 0.0195701556442255 0.432078727710756 0.432078727710756
w0_sigma 0.6 0.609742586599282 0.608839040654737 0.0135264170151672 0.608839040654738 0.0135264170151672 0.65346504139465 0.653465041394658
w1_int 2.5 2.9831246092485 2.49001030956967 0.0392127408882751 2.49001030880721 0.0392127409372684 -0.254756240039316 -0.25475625916516
w1_beta1 0.6 0.56168367879329 0.601685599956179 0.0250287781825248 0.601685599968533 0.0250287781828337 0.0673464738824354 0.0673464743752184
w1_lambda 1 0.5 1.03011541874511 0.0326228146448331 1.03011541867927 0.0326228146423727 0.923139804856669 0.923139802908248
w1_sigma 0.7 1.13196449740323 0.713163929572935 0.0188444670709923 0.713163929564985 0.0188444670703277 0.698556744711488 0.698556744314246
s_int 0 -0.00886275628876306 -0.0171487839851336 0.0386255032266341 -0.0171487845973336 0.0386255032545186 -0.443975678051715 -0.443975693580833
s_beta1 0.4 0.335219551982136 0.428265977341674 0.0342693665854503 0.428265977346783 0.0342693665857466 0.824817618708919 0.824817618850857
s_loading 0.8 0.5 0.834825814992284 0.0442694779043625 0.834825814949424 0.0442694779012119 0.786677788871155 0.786677787958981

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

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