=== Test: test_E_roy_model ===
Timestamp: 2025-12-03 07:14:25.042098

--- 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.000172350193096804 1.41063590525743e-06 TRUE
2 2 FALSE 56.0649395696246 56.0643920898438 0.000547479780877325 9.76519606241307e-06 TRUE
3 0.5 FALSE 264.548006310453 264.546936035156 0.00107027529668358 4.04569152349338e-06 TRUE
4 1.5 FALSE 56.0302242626977 56.0306396484375 0.000415385739785279 7.41354627381739e-06 TRUE
5 1.2 FALSE -84.4582106671152 -84.4586690266927 0.000458359577564238 5.42702818841931e-06 TRUE
6 0.6 FALSE 153.256977211351 153.257385253906 0.000408042555221755 2.66246585471714e-06 TRUE
7 1 FALSE -112.059828687906 -112.059387207031 0.000441480874528111 3.93970452214297e-06 TRUE
8 0.8 FALSE 55.0348916753442 55.0347290039062 0.000162671437919926 2.95579611027756e-06 TRUE
9 0.4 FALSE 262.739593366027 262.739807128906 0.000213762879241131 8.13591520740721e-07 TRUE
10 2 FALSE 8.12052641974636 8.12051391601562 1.25037307334708e-05 1.53977086460136e-06 TRUE
11 0.5 FALSE -19.1244282462222 -19.1251220703125 0.000693824090280515 3.62781522507259e-05 TRUE
12 0.3 FALSE 20.8591028747895 20.8582153320312 0.00088754275821401 4.2551231928795e-05 TRUE
13 0.6 FALSE 50.6788666262774 50.6788940429688 2.74166913811769e-05 5.4098835223064e-07 TRUE
14 2.5 FALSE -31.4320527346892 -31.4321044921875 5.17574983263103e-05 1.64664438358477e-06 TRUE
15 0.6 FALSE 0.695557385180316 0.69512939453125 0.000427990649065513 0.000615699253164401 TRUE
16 1 FALSE -15.9213930445081 -15.9210815429688 0.000311501539350445 1.95653504135222e-05 TRUE
17 0.7 FALSE 59.6875798281494 59.6878051757812 0.000225347631804595 3.7754384022154e-06 TRUE
18 0 FALSE -25.0484406006829 -25.0497436523438 0.00130305166086231 5.20185627025525e-05 TRUE
19 0.4 FALSE 24.2263033688519 24.2257690429688 0.000534325883183584 2.20560958141664e-05 TRUE
20 0.8 FALSE -1.1840128956501 -1.18463134765625 0.000618452006151404 0.00052206284037223 TRUE

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

Summary of relative errors:
     Min.   1st Qu.    Median      Mean   3rd Qu.      Max. 
0.0000000 0.0000000 0.0000001 0.0053053 0.0000007 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.865589042730798 0.0427716625544224 0.865606574153582 0.0427749866022513 -3.14252355980267 -3.14186950182105
T1_int 2 2.02038972109081 2.0174135257472 0.029020873200731 2.01741165525226 0.0290217475787772 0.600034520903281 0.599951991347169
T1_sigma 0.5 1.10793992274121 0.522819697326397 0.0117382963555096 0.522819467197252 0.0117383153917954 1.94403826886568 1.94401551122079
T2_int 1.5 1.52614336474081 1.52252857935306 0.035064421509156 1.52252632135778 0.0350653861945665 0.642491117304718 0.642409047851153
T2_lambda 1.2 0.5 1.21456589287704 0.022444195427835 1.21456124777111 0.0224441758106495 0.648982625546898 0.648776230143563
T2_sigma 0.6 1.33607075774289 0.614414182756522 0.0141608427145777 0.61441523308677 0.0141608549318874 1.01789018118839 1.01796347438809
T3_int 1 1.00174049662065 0.999279735570112 0.0237725166175113 0.999278198462944 0.0237731756735647 -0.030298198607936 -0.0303620158689422
T3_lambda 0.8 0.5 0.826814353772906 0.0151556246807723 0.826811185161789 0.0151556151738565 1.76926747248662 1.76905951056599
T3_sigma 0.4 0.904431294644681 0.407064021995277 0.00961349502348362 0.407064769192555 0.00961351503379719 0.7348026891387 0.734878883292797
w0_int 2 2.00496948319753 2.00496948319753 0.0199335442146991 2.00496948319753 0.0199335442146991 0.249302539679294 0.249302539679294
w0_beta1 0.5 0.49350336141093 0.493503361410929 0.0191626081881972 0.493503361410929 0.0191626081881972 -0.339026844637588 -0.339026844637588
w0_beta2 0.3 0.308455847951859 0.308455847951858 0.0195701556442255 0.308455847951858 0.0195701556442255 0.432078727710756 0.432078727710756
w0_sigma 0.6 0.609742586599282 0.608839040654738 0.0135264170151672 0.608839040654737 0.0135264170151672 0.653465041394658 0.65346504139465
w1_int 2.5 2.9831246092485 2.49001219595129 0.0398181281855546 2.49000916099744 0.0398189625684929 -0.250835599357405 -0.250906562052435
w1_beta1 0.6 0.561683678793291 0.6016856479284 0.0250311062064005 0.601685434531066 0.0250311201999194 0.0673421268121477 0.0673335638838642
w1_lambda 1 0.5 1.03011481383779 0.0323348620093324 1.03011181900338 0.0323347708844897 0.931341962402764 0.931251967454686
w1_sigma 0.7 1.13196449740323 0.713163985675495 0.018843039835023 0.71316404834919 0.0188430508205961 0.698612633139337 0.698615551936047
s_int 0 -0.00886275628876305 -0.0171480171653268 0.0387867147786358 -0.0171497370589513 0.038787477348296 -0.442110585111274 -0.442146234594057
s_beta1 0.4 0.335219551982137 0.428262913605764 0.035056631697878 0.428265878636334 0.0350569345285224 0.806207334730187 0.806284948084563
s_loading 0.8 0.5 0.834808012924403 0.0566524464278831 0.834822375443576 0.0566549577977345 0.614413235776363 0.61463950900636

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

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