Hello,
Using libgretl 1.8.7, with heteroscedacity function, i got the error :
"Weight variable is all zeros, aborting regression"
but when i add one observations it works or some observations added later it
does the same error, more observations later same it works and so on.
I give you the data with errors, it's a time serie with weekly observations,
i use this before calling the hsk_func :
listlag = laggenr_from_to(1, 1, 75, &m_Z, m_datainfo, &err);
and the m_Z contains at the beginning :
m_Z[1][0] = 1431225.000000;
m_Z[1][1] = 207958.000000;
m_Z[1][2] = 1328798.000000;
m_Z[1][3] = 1412733.000000;
m_Z[1][4] = 1766147.000000;
m_Z[1][5] = 1635199.000000;
m_Z[1][6] = 1565249.000000;
m_Z[1][7] = 949787.000000;
m_Z[1][8] = 1130386.000000;
m_Z[1][9] = 834164.000000;
m_Z[1][10] = 2080654.000000;
m_Z[1][11] = 1153485.000000;
m_Z[1][12] = 857538.000000;
m_Z[1][13] = 1363286.000000;
m_Z[1][14] = 2051956.000000;
m_Z[1][15] = 660288.000000;
m_Z[1][16] = 664975.000000;
m_Z[1][17] = 1831966.000000;
m_Z[1][18] = 1516991.000000;
m_Z[1][19] = 1284537.000000;
m_Z[1][20] = 978315.000000;
m_Z[1][21] = 611010.000000;
m_Z[1][22] = 86147.000000;
m_Z[1][23] = 1004510.000000;
m_Z[1][24] = 150055.000000;
m_Z[1][25] = 632921.000000;
m_Z[1][26] = 182371.000000;
m_Z[1][27] = 1269861.000000;
m_Z[1][28] = 599457.000000;
m_Z[1][29] = 989400.000000;
m_Z[1][30] = 859726.000000;
m_Z[1][31] = 1501113.000000;
m_Z[1][32] = 249601.000000;
m_Z[1][33] = 383646.000000;
m_Z[1][34] = 311465.000000;
m_Z[1][35] = 1591434.000000;
m_Z[1][36] = 817778.000000;
m_Z[1][37] = 906471.000000;
m_Z[1][38] = 1957765.000000;
m_Z[1][39] = 1024629.000000;
m_Z[1][40] = 1293944.000000;
m_Z[1][41] = 920355.000000;
m_Z[1][42] = 1956842.000000;
m_Z[1][43] = 1560762.000000;
m_Z[1][44] = 1931361.000000;
m_Z[1][45] = 1326024.000000;
m_Z[1][46] = 1838782.000000;
m_Z[1][47] = 205036.000000;
m_Z[1][48] = 1168592.000000;
m_Z[1][49] = 1081148.000000;
m_Z[1][50] = 1741196.000000;
m_Z[1][51] = 798779.000000;
m_Z[1][52] = 103289.000000;
m_Z[1][53] = 456865.000000;
m_Z[1][54] = 543444.000000;
m_Z[1][55] = 1407659.000000;
m_Z[1][56] = 1519187.000000;
m_Z[1][57] = 375135.000000;
m_Z[1][58] = 852668.000000;
m_Z[1][59] = 1772748.000000;
m_Z[1][60] = 134335.000000;
m_Z[1][61] = 687954.000000;
m_Z[1][62] = 1827437.000000;
m_Z[1][63] = 762331.000000;
m_Z[1][64] = 603293.000000;
m_Z[1][65] = 792405.000000;
m_Z[1][66] = 1822889.000000;
m_Z[1][67] = 28162.000000;
m_Z[1][68] = 119814.000000;
m_Z[1][69] = 1860604.000000;
m_Z[1][70] = 1121620.000000;
m_Z[1][71] = 1684701.000000;
m_Z[1][72] = 1077879.000000;
m_Z[1][73] = 1926145.000000;
m_Z[1][74] = 724391.000000;
m_Z[1][75] = 2115458.000000;
m_Z[1][76] = 7795.000000;
m_Z[1][77] = 1047352.000000;
m_Z[1][78] = 840371.000000;
m_Z[1][79] = 1476913.000000;
m_Z[1][80] = 1511875.000000;
m_Z[1][81] = 176943.000000;
m_Z[1][82] = 133643.000000;
m_Z[1][83] = 887549.000000;
m_Z[1][84] = 1812511.000000;
m_Z[1][85] = 17846.000000;
m_Z[1][86] = 603354.000000;
m_Z[1][87] = 1126207.000000;
m_Z[1][88] = 1232769.000000;
m_Z[1][89] = 196866.000000;
m_Z[1][90] = 681670.000000;
m_Z[1][91] = 664312.000000;
m_Z[1][92] = 291783.000000;
m_Z[1][93] = 1872033.000000;
m_Z[1][94] = 1054658.000000;
m_Z[1][95] = 689063.000000;
m_Z[1][96] = 1023127.000000;
m_Z[1][97] = 755405.000000;
m_Z[1][98] = 1742680.000000;
m_Z[1][99] = 1085702.000000;
m_Z[1][100] = 967574.000000;
m_Z[1][101] = 57139.000000;
m_Z[1][102] = 1967121.000000;
m_Z[1][103] = 155571.000000;
m_Z[1][104] = 22136.000000;
m_Z[1][105] = 876667.000000;
m_Z[1][106] = 1834178.000000;
m_Z[1][107] = 609363.000000;
m_Z[1][108] = 2082755.000000;
m_Z[1][109] = 195996.000000;
m_Z[1][110] = 1858837.000000;
m_Z[1][111] = 191434.000000;
m_Z[1][112] = 56269.000000;
m_Z[1][113] = 2036749.000000;
m_Z[1][114] = 504633.000000;
m_Z[1][115] = 1218606.000000;
m_Z[1][116] = 117861.000000;
m_Z[1][117] = 97979.000000;
m_Z[1][118] = 1988992.000000;
m_Z[1][119] = 2057725.000000;
m_Z[1][120] = 361376.000000;
m_Z[1][121] = 1357918.000000;
m_Z[1][122] = 928988.000000;
m_Z[1][123] = 543378.000000;
m_Z[1][124] = 1518102.000000;
m_Z[1][125] = 1585398.000000;
m_Z[1][126] = 957590.000000;
m_Z[1][127] = 84222.000000;
m_Z[1][128] = 1572125.000000;
m_Z[1][129] = 1017730.000000;
m_Z[1][130] = 1918768.000000;
m_Z[1][131] = 71380.000000;
m_Z[1][132] = 214801.000000;
m_Z[1][133] = 190478.000000;
m_Z[1][134] = 1240358.000000;
m_Z[1][135] = 2002441.000000;
m_Z[1][136] = 2077945.000000;
m_Z[1][137] = 1095170.000000;
m_Z[1][138] = 908149.000000;
m_Z[1][139] = 1424074.000000;
m_Z[1][140] = 1899931.000000;
m_Z[1][141] = 54489.000000;
m_Z[1][142] = 1944286.000000;
m_Z[1][143] = 931712.000000;
m_Z[1][144] = 964216.000000;
m_Z[1][145] = 817239.000000;
m_Z[1][146] = 1491468.000000;
m_Z[1][147] = 1804150.000000;
m_Z[1][148] = 754704.000000;
m_Z[1][149] = 1526318.000000;
m_Z[1][150] = 1261455.000000;
m_Z[1][151] = 1658306.000000;
m_Z[1][152] = 1138944.000000;
m_Z[1][153] = 740934.000000;
m_Z[1][154] = 872778.000000;
m_Z[1][155] = 931733.000000;
m_Z[1][156] = 445110.000000;
m_Z[1][157] = 156769.000000;
m_Z[1][158] = 1101183.000000;
m_Z[1][159] = 274844.000000;
m_Z[1][160] = 371715.000000;
m_Z[1][161] = 2082148.000000;
m_Z[1][162] = 1518744.000000;
m_Z[1][163] = 522768.000000;
m_Z[1][164] = 361869.000000;
m_Z[1][165] = 1427257.000000;
m_Z[1][166] = 1729193.000000;
m_Z[1][167] = 583271.000000;
m_Z[1][168] = 1734855.000000;
m_Z[1][169] = 2019046.000000;
m_Z[1][170] = 2051469.000000;
m_Z[1][171] = 10471.000000;
m_Z[1][172] = 671369.000000;
m_Z[1][173] = 1689988.000000;
m_Z[1][174] = 813742.000000;
m_Z[1][175] = 985851.000000;
m_Z[1][176] = 1701341.000000;
m_Z[1][177] = 1499903.000000;
m_Z[1][178] = 327022.000000;
m_Z[1][179] = 110924.000000;
m_Z[1][180] = 1472301.000000;
m_Z[1][181] = 1494097.000000;
m_Z[1][182] = 2073332.000000;
m_Z[1][183] = 686139.000000;
m_Z[1][184] = 259252.000000;
m_Z[1][185] = 1318475.000000;
m_Z[1][186] = 696237.000000;
m_Z[1][187] = 1232458.000000;
m_Z[1][188] = 1335898.000000;
m_Z[1][189] = 636697.000000;
m_Z[1][190] = 635087.000000;
m_Z[1][191] = 1913213.000000;
m_Z[1][192] = 838686.000000;
m_Z[1][193] = 1514290.000000;
m_Z[1][194] = 813316.000000;
m_Z[1][195] = 947732.000000;
m_Z[1][196] = 1333502.000000;
m_Z[1][197] = 322433.000000;
m_Z[1][198] = 871298.000000;
m_Z[1][199] = 368299.000000;
m_Z[1][200] = 580202.000000;
m_Z[1][201] = 638802.000000;
m_Z[1][202] = 1697618.000000;
m_Z[1][203] = 1467552.000000;
m_Z[1][204] = 5388.000000;
m_Z[1][205] = 432330.000000;
m_Z[1][206] = 1685650.000000;
m_Z[1][207] = 2100829.000000;
m_Z[1][208] = 572783.000000;
m_Z[1][209] = 398972.000000;
m_Z[1][210] = 39131.000000;
m_Z[1][211] = 2089804.000000;
m_Z[1][212] = 1262827.000000;
m_Z[1][213] = 337849.000000;
m_Z[1][214] = 939217.000000;
m_Z[1][215] = 1390430.000000;
m_Z[1][216] = 1862614.000000;
m_Z[1][217] = 187631.000000;
m_Z[1][218] = 126734.000000;
m_Z[1][219] = 1060630.000000;
m_Z[1][220] = 386496.000000;
m_Z[1][221] = 1626442.000000;
m_Z[1][222] = 890342.000000;
m_Z[1][223] = 887525.000000;
m_Z[1][224] = 2007208.000000;
m_Z[1][225] = 76483.000000;
with this it doesn't work but when i add one observation :
m_Z[1][226] = 58168.000000;
it works...
is it normal ? or is it a bug ?
thanks.