On 17/06/2024 10:28, Sven Schreiber wrote:
Am 17.06.2024 um 08:35 schrieb Riccardo (Jack) Lucchetti:
> On 17/06/2024 08:02, Riccardo (Jack) Lucchetti wrote:
>>
>> Is this close to what you need?
>
> I'm sorry, I hadn't thought of the possibility that the series may not
> have the same support. Use the attached version instead.
Further revision attached, where the labels on the x axis are handled
more sensibly.
> PS: this script assumes that all the variable are discrete. For
> continuous variable a different approach would be needed.
This looks very nice, but indeed I'd say that a histogram (OP) refers to
continuous variables.
Possibly. That would require a completely different approach, though. In
those cases, I'd think kernel density estimates would be more advisable.
-------------------------------------------------------
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
-------------------------------------------------------