Page 1 of 1

creating a kernel density graph of a group

Posted: Sun Jun 25, 2017 8:56 am
by Yohan
Hi,

i have a group of series, say x, y and z.

Via the eviews buttons, i make a "group" of x, y and z, and go to "View/Graph/Distribution/Kernel Density" and select "Single Graph". As result, i have the kernel densities of x, y and z in one graph.

how can i create the same via programming?
i have tried with distplot, but this hasn't work...

Much thanks and kind regards,

Yohan

Re: creating a kernel density graph of a group

Posted: Sun Jun 25, 2017 9:05 am
by EViews Gareth
Do it via the menus, then use the Command Capture window to tell you the command equivalent.

Re: creating a kernel density graph of a group

Posted: Mon Jun 26, 2017 2:48 am
by Yohan
Thank you, but i haven't a command capture option. Probably because i use EViews 8 and this option is a new feature. Do you have another suggestion?
Many thanks!

Re: creating a kernel density graph of a group

Posted: Mon Jun 26, 2017 7:31 am
by EViews Gareth

Re: creating a kernel density graph of a group

Posted: Mon Jun 26, 2017 8:03 am
by Wizard
Try this

Code: Select all

create prueba u 1000 for %j x y z genr {%j}=@nrnd next group G G.add x y z 'Kernel density graph of a group G.distplot(s) kernel(k=e, ngrid=100)