!(The regression is incorrect from econometric point of view,
just to give an easily reproducible example)open /usr/local/share/gretl/data/misc/denmark.gdtols LRM const LRYdw=$dwpval(here Durbin-Watson = 0.298798)From script output:? dw=$dwpvalImhof integral gave negative valueError executing script: halting> dw=$dwpvalMay be it worth to include into the functionsomething like this: if dw<dw0 (or ifImhof <=0) or pvalue<p0 print( pvalue<e-N )for some N, say e-16?R ouput for the same dataset (dwtest{lmtest})DW = 0.2988, p-value < 2.2e-16