Hello
The following code produces this error "Data error"
int list[2] = {1,0};
int kpss_error = ::kpss_test(2,list,dset,OPT_N,prn);
if (kpss_error!=0) {
errmsg(adf_error, prn);
}
When I use the same data set in the GUI everything works just fine.
From what I can tell it seems like the problem is because of 0 in list[2] = {1,0};
or int list[13] = {12,0,1,2,3,4,5,6,7,8,9,10,11};
Due I need to split the data set in half and have a data set with two variables were
one variable is the first half of the data and the second the second half of the data?
Because in using a dset with more than one variable and setting list[3] = {1,1} seems to
work
The error comes from the following lines in (line 2097)static int real_kpss_test(int
order, int varno, DATASET *dset,gretlopt opt, kpss_info *kinfo, PRN *prn)
(line 2114) if (varno <= 0 || varno >= dset->v) {
return E_DATA;
}
were varno is set at (line 2435) in the kpss_test(....) function
these are in adf_kpss.c
I also get the same error with ::adf_test(2,list,dset,OPT_N,prn);
were varno is set at line 2435 in the kpss_test(....) function
I also get the same error with ::adf_test(2,list,dset,OPT_N,prn);
Thank you