panel graph using @meansby

For questions regarding programming in the EViews programming language.

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

maragloria
Posts: 101
Joined: Tue Jun 29, 2010 7:09 am

panel graph using @meansby

Postby maragloria » Sat May 27, 2017 9:17 am

Hi there,

I'm working with panel data in Eviews 9.5.

I'm trying to get the following graph obtained using panel=mean:
panelgraph.jpg
panelgraph.jpg (17.13 KiB) Viewed 3772 times


Upon running the code

Code: Select all

graph cxnfa.line @meansby(nfa,id01)

where id01 represents the date identifiers, I get the following:
cxnfa.jpg
cxnfa.jpg (54.52 KiB) Viewed 3772 times


How can I modify my code to get the first graph?

Many thanks!

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

Re: panel graph using @meansby

Postby EViews Gareth » Sat May 27, 2017 5:26 pm

Code: Select all

cxnfa.line(panel=mean)
Follow us on Twitter @IHSEViews

maragloria
Posts: 101
Joined: Tue Jun 29, 2010 7:09 am

Re: panel graph using @meansby

Postby maragloria » Sun May 28, 2017 6:30 am

Hello Glenn,

Thanks for your reply.

Two reasons why I was thinking of using @meansby:

1) The command "panel=medmxmn" is not working properly. When I run the code

Code: Select all

graph _cxnfa.line(panel=medmxmn) nfa
I get the following graph:
cxnfa_medmxmn.jpg
cxnfa_medmxmn.jpg (21.23 KiB) Viewed 3748 times


2) I would like to get a graph with min-mean-max instead. So I thought of using @maxby, @minby, @meansby. Is there a better way to accomplish this?

Thanks again.

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

Re: panel graph using @meansby

Postby EViews Gareth » Sun May 28, 2017 7:18 am

ok, so do something like:

Code: Select all

smpl if @crossid=1
graph cxnfa.line @meansby(nfa, @obsid)
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 61 guests