On Tue, 26 Feb 2019, Riccardo (Jack) Lucchetti wrote:
For the moment, you can just copy-n-paste the example scripts you
find
at Section 23.7 of the Guide,
No, you can't :)
I just realised the example script uses a non-existent function. I *think*
we had at some point a genpois() function, later superseded by randgen().
Therefore, if you want the example script to run, you have to change the
line
series y = (uniform()<truep) ? 0 : genpois(exp(b0 + b1*x))
to
series y = (uniform()<truep) ? 0 : randgen(p, exp(b0 + b1*x))
This is already done in git.
-------------------------------------------------------
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
-------------------------------------------------------