Page 1 of 1

panel graph using @meansby

Posted: Sat May 27, 2017 9:17 am
by maragloria
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 4605 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 4605 times
How can I modify my code to get the first graph?

Many thanks!

Re: panel graph using @meansby

Posted: Sat May 27, 2017 5:26 pm
by EViews Gareth

Code: Select all

cxnfa.line(panel=mean)

Re: panel graph using @meansby

Posted: Sun May 28, 2017 6:30 am
by maragloria
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 4581 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.

Re: panel graph using @meansby

Posted: Sun May 28, 2017 7:18 am
by EViews Gareth
ok, so do something like:

Code: Select all

smpl if @crossid=1 graph cxnfa.line @meansby(nfa, @obsid)