• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

nist-nls/H04-Aug-2018-1,2881,059

rng/H07-Oct-2016-172120

Filip.datH A D02-Oct-20154.8 KiB143120

Longley.datH A D02-Oct-20152.9 KiB7753

Makefile.inH A D03-May-2022781 4731

NoInt1.datH A D02-Oct-20151.6 KiB7239

NoInt2.datH A D02-Oct-20151.3 KiB6431

Norris.datH A D02-Oct-20152.6 KiB9866

Pontius.datH A D02-Oct-20152.7 KiB10171

READMEH A D02-Oct-20152.2 KiB5340

Wampler1.datH A D02-Oct-20152.4 KiB8257

Wampler2.datH A D02-Oct-20152.4 KiB8257

Wampler3.datH A D02-Oct-20152.4 KiB8257

Wampler4.datH A D02-Oct-20152.3 KiB8257

Wampler5.datH A D02-Oct-20152.4 KiB8257

nasty.gdtH A D02-Oct-2015948 2927

nasty.inpH A D02-Oct-2015442 1816

nistcheck.cH A D09-May-201822.8 KiB1,045815

README

1Here's a checker program that runs libgretl against the NIST reference
2datasets for linear regression, for details on which see
3
4http://itl.nist.gov/div898/strd/general/main.html
5
6The checker validates libgretl and (if available) the gretl multiple
7precision plugin.
8
9And there's a sub-dir named nist-nls with a rig for checking gretl's
10nonlinear regression code against the NIST reference datasets.
11
12NIST Results with libgretl
13==========================
14
15If all is well there should be no failures on the 11 NIST tests.
16
17The checker program reads the "certified values" and data out of each
18NIST file, runs a regression using libgretl, and compares the libgretl
19estimates with the certified values, starting at a precision of 9
20significant figures.  If there is any disagreement, the comparison is
21repeated using 8 significant figures, and so on.  If the figures do
22not agree at a precision of at least 6 figures, the test is deemed to
23have been failed and an error message is printed.
24
25You can get more details on gretl's performance on the tests by
26running the 'nistcheck' program in verbose mode (-v flag) or very
27verbose mode (-vv).
28
29NIST Results with multiple precision plugin
30===========================================
31
32If the Gnu Multiple Precision library (GMP) was detected when gretl
33was configured, and gretl's GMP plugin was built, then each NIST test
34will be repeated using the plugin.  All tests should give results
35that agree with the NIST certified values to at least 12 significant
36figures.
37
38Note that the test data sets Wampler1 and Wampler2 give, by
39construction, an exact polynomial fit.  This is difficult to
40reproduce.  If you run the checker program in verbose mode you will
41see that instead of standard errors of precisely zero, values around
4210^{-39} are reported.  You can, however, drive these to zero by
43raising the precision used in the calculations.  The default for
44gretl's multiple precision plugin is to assign 256 bits for the
45representation of each floating point number, which is enough for most
46purposes.  You can increase this value by setting the environment
47variable GRETL_MP_BITS, for example:
48
49GRETL_MP_BITS=4096 ./nistcheck -v
50
51Allin Cottrell
52last updated April 2011
53