On Wed, 21 Mar 2018, Marcin Błażejowski wrote:
Hi,
simple code:
<hansl>
set verbose off
nulldata 128
set seed 123456
foo = randgen(N, 10, 2)
freq foo --nbins=3
freq foo --nbins=4
</hansl>
Why I get 5 bins instead of 4 in the second freq call?
This is because the number of bins is forced to be odd, so 4 becomes 5. I
can't say right now why this happens, this is a very old area of the
source.
Whatever the reason, it is undocumented, so either we add a line to the
doc for the "freq" command or we remove lines 1675-1677 from
lib/src/describe.c.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------