creating a kernel density graph of a group

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

Yohan
Posts: 17
Joined: Sun Aug 26, 2012 5:08 pm

creating a kernel density graph of a group

Postby Yohan » Sun Jun 25, 2017 8:56 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13312
Joined: Tue Sep 16, 2008 5:38 pm

Re: creating a kernel density graph of a group

Postby EViews Gareth » Sun Jun 25, 2017 9:05 am

Do it via the menus, then use the Command Capture window to tell you the command equivalent.
Follow us on Twitter @IHSEViews

Yohan
Posts: 17
Joined: Sun Aug 26, 2012 5:08 pm

Re: creating a kernel density graph of a group

Postby Yohan » Mon Jun 26, 2017 2:48 am

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!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13312
Joined: Tue Sep 16, 2008 5:38 pm

Re: creating a kernel density graph of a group

Postby EViews Gareth » Mon Jun 26, 2017 7:31 am

Follow us on Twitter @IHSEViews

Wizard
Posts: 1
Joined: Wed Aug 17, 2011 9:21 am

Re: creating a kernel density graph of a group

Postby Wizard » Mon Jun 26, 2017 8:03 am

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)


Return to “Programming”

Who is online

Users browsing this forum: Google [Bot] and 21 guests