Dear Tom,
I apologize for bringing up the same old question again, but I really need your help on this one, I went through your suggestions, adjusted the length of my workspace, the data is read by rats fine, but I still can't figure out why the output skips many data points, in the M and J loops. As I have explained in my previous emails, my code (attached is an edited new code with a data file) consists of three steps:
1. Estimation, this will generate 448 observation (in sample)
2. Simulate estr distribution using
Code: Select all
"set estr = (sqrt(d1)*z+muxstr1)*(1-j3) + (sqrt(d2)*z+muxstr2)*j3"
and using the parameter estimates from 1.
3. For each input S, T1, r2, from my second data sets with a total of 61 observations, (in my code this is referred to as an M loop), test the condition:
, this is done for each T2 and K, a total of 10964 obs, I refer to this as a J loop.
This is the output I get using table:
Series Obs Mean Std Error Minimum Maximum
F1 455 0.040330 1.004415 -4.970000 2.670000
F2 455 0.948697 0.218155 0.386000 1.447000
X 455 0.004929 0.044528 -0.245428 0.151043
R 455 0.066818 0.035520 0.010200 0.207700
S 61 1287.994098 259.649113 735.090000 1848.360000
T1 61 40755.114754 540.529435 39843.000000 41670.000000
R2 61 0.003534 0.001751 0.001900 0.009800
K 10964 1151.908519 381.379458 100.000000 3000.000000
T2 10964 40899.318679 584.740460 39864.000000 42174.000000
ST(1) 7 2119.485219 216.419092 1955.193925 2527.573634
ST(2) 8 1953.633547 370.851496 1641.172842 2812.513109
ST(3) 7 1843.679394 233.944140 1514.869634 2145.740724
CALL(1) 7 1109.870324 218.463262 944.027229 1521.813308
CALL(2) 8 942.452112 374.354346 627.040083 1809.444157
CALL(3) 7 831.459396 236.153842 499.543888 1136.373824
TEMP1 455 -0.014814 0.052503 -0.272030 0.158624
TEMP2 456 0.003051 0.021287 0.000000 0.455182
TEMP3 456 0.022509 0.373831 0.000000 7.987350
TEMP4 456 0.012670 0.270553 0.000000 5.777428
TEMP5 456 16350584615.243677 3345106684.350837 0.000000 19798670416.531475
MUXSTR1 455 0.003791 0.003109 0.000040 0.015328
MUXSTR2 455 0.009247 0.007717 0.001732 0.073880
MUTSTR1 455 -0.632581 0.120852 -0.989552 -0.093188
MUTSTR2 455 -11342.587411 3969.327804 -29983.952038 -1736.042863
LAMBDA01 455 -1994844.834977 983978.036582 -9312806.803272 -309695.863366
LAMBDA02 455 -0.149341 0.100371 -1.569558 -0.030493
LAMBDA1 455 139551.746045 119951.714030 12834.398133 1190856.235173
LAMBDA2 455 -1.256066 0.599634 -6.831248 -0.389508
AS 455 19.488442 17.293803 1.285206 153.558822
BS 455 0.089102 0.029049 0.028414 0.227339
CS 455 0.000011 0.000009 0.000001 0.000078
DS 455 0.648310 0.132476 0.144842 0.931810
G3S 455 0.000227 0.004712 0.000000 0.100493
G4S 455 0.540123 0.014998 0.512903 0.605697
PISTR 455 0.000341 0.007024 0.000000 0.149796
V 448 0.014904 1.027887 -2.778213 3.312204
SIMUL1 448 0.506574 0.291862 0.000951 0.998224
U1 36 6.356172 1.636907 1.635979 8.160727
U2 447 -0.724677 0.606684 -3.288935 0.143271
SIMUL2 448 0.489109 0.281009 0.003058 0.998813
J1 447 1.000000 0.000000 1.000000 1.000000
J2 447 2.000000 0.000000 2.000000 2.000000
J3 447 1.000000 0.000000 1.000000 1.000000
Z 36 0.504480 0.839347 -1.395217 2.515806
ESTR 36 0.072322 0.089597 -0.138410 0.228648
TEMP22 36 0.001109 0.001196 0.000026 0.004357
TEMP33 36 0.004565 0.004045 0.000498 0.019382
TEMP44 36 0.000000 0.000000 0.000000 0.000000
TEMP55 36 823693640.059687 49003222.793250 771030277.326579 947888841.201279
D11 36 0.001109 0.001196 0.000026 0.004357
D22 36 0.004565 0.004045 0.000498 0.019382
K11 36 0.000000 0.000000 0.000000 0.000000
K22 36 823693640.059687 49003222.793250 771030277.326579 947888841.201279
SIGMATX11 36 -0.000000 0.000000 -0.000000 0.000000
SIGMATX22 36 273.490418 1470.423402 -2944.023096 2801.982372
M_11 36 1.001870 0.002018 1.000044 1.007357
M_22 36 1.007731 0.006899 1.000838 1.033141
M_33 36 0.000503 0.003015 0.000000 0.018090
M_44 36 0.492940 0.037530 0.429543 0.577099
M_31 36 0.000617 0.003704 0.000000 0.022224
M_41 36 0.500007 0.000002 0.500001 0.500011
C2 36 1.997609 0.014182 1.914883 1.999987
M_1 36 0.992948 0.073966 0.878079 1.176467
M_12 36 1.004477 0.004838 1.000104 1.017655
M_21 36 1.018635 0.016792 1.002003 1.080956
M_13 36 0.000448 0.002688 0.000000 0.016127
M_14 36 0.489139 0.057748 0.391913 0.618103
M_2 36 0.995422 0.115578 0.825852 1.310562
PSINUSTR0 36 -0.010982 0.114070 -0.191340 0.270456
PSINUSTR1 36 -0.009745 0.073909 -0.130018 0.162516
DUMMY 0
RTSTR 7 0.026731 0.127823 -0.162738 0.185417