How to use Pivottable functions from excel in eviews

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

eyt
Posts: 3
Joined: Sun Jul 14, 2013 8:20 am

How to use Pivottable functions from excel in eviews

Postby eyt » Wed Jun 17, 2015 9:48 am

Hi all,

I would like to create a series based on two other series. e.g. the two series is similar to this:

SeriesA SeriesB
1 A
2 B
3 C
4 D
2 E
2 F
2 G
3 H
3 I


The new series I would like is one that counts how many observations in SeriesB corresponding to the observations in SeriesA. it would look like this:
SeriesNEW
1
4
3
1
4
4
4
3
3

In excel, I would use the pivot table, and place series A on the rows, and series B on the values. And the counts would be generated. But since I am using an extremely large dataset, I am unable to use excel and import it into eviews.

I hope its clear, thanks in advance!

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

Re: How to use Pivottable functions from excel in eviews

Postby EViews Gareth » Wed Jun 17, 2015 11:16 am

I think you want the @countsby function.

eyt
Posts: 3
Joined: Sun Jul 14, 2013 8:20 am

Re: How to use Pivottable functions from excel in eviews

Postby eyt » Wed Jun 17, 2015 12:11 pm

Hi, thanks for the reply.

But I am not familiar with Eviews, can you please let me know how to implement the function @countsby to create the series? Or is there information on it somewhere?

Thanks!

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: How to use Pivottable functions from excel in eviews

Postby startz » Wed Jun 17, 2015 1:21 pm

@countsby is a secret function. If you enter it in the index or the search field of the Help system nothing shows up. :cry:

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: How to use Pivottable functions from excel in eviews

Postby EViews Glenn » Wed Jun 17, 2015 7:32 pm

It's listed under "by-group statistics".

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: How to use Pivottable functions from excel in eviews

Postby startz » Wed Jun 17, 2015 7:40 pm

Not on my copy it's not. (I know, I have some option set wrong.)
Capture.PNG
Capture.PNG (23.25 KiB) Viewed 5380 times

eyt
Posts: 3
Joined: Sun Jul 14, 2013 8:20 am

Re: How to use Pivottable functions from excel in eviews

Postby eyt » Thu Jun 18, 2015 5:08 am

I currently have eviews 8, I tried looking up the function but I cannot find it in the help files or online.

Can someone please let me know how to structure the commands for the desired series? :?

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

Re: How to use Pivottable functions from excel in eviews

Postby EViews Gareth » Thu Jun 18, 2015 6:12 pm

I guess it is @obsby rather than @countsby


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests