creating a table from multiple series

For questions regarding programming in the EViews programming language.

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

tr206
Posts: 13
Joined: Tue Feb 28, 2017 12:45 pm

creating a table from multiple series

Postby tr206 » Sun May 07, 2017 5:31 am

Dear all,

I would like to calculate the variance of returns over a specified time horizon as shown in the code below:

Code: Select all

series z = @vars(return, "1990m01 1999m12")
series x = @vars(return, "2000m01 2009m12")


Now I would like to create a table from the outcomes z and x which displays the variance of the two time horizons as defined in the code. I wish to present the variances in one line and two columns.
How can I do that in eviews? Can I write a command to do that?

Thanks in advance.

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

Re: creating a table from multiple series

Postby EViews Gareth » Sun May 07, 2017 6:32 am

Code: Select all

table mytable
smpl 1990 1999
mytable(1,1) = @vars(return)
smpl 2000 2009
mytable(1,2) = @vars(return)
Follow us on Twitter @IHSEViews

tr206
Posts: 13
Joined: Tue Feb 28, 2017 12:45 pm

Re: creating a table from multiple series

Postby tr206 » Mon May 08, 2017 4:13 am

Great, thanks.
How can I name the columns and the lines? I want the smpl command as header of the columns.

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

Re: creating a table from multiple series

Postby EViews Gareth » Mon May 08, 2017 8:28 am

mytable(1,1) = "2000 2009"
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 33 guests