Obtaining group statistics (time x series)

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

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

jfgeli
Posts: 72
Joined: Fri Jan 30, 2009 6:29 pm

Obtaining group statistics (time x series)

Postby jfgeli » Fri Feb 28, 2020 6:31 am

Hi there,
I need to calculate quantiles in a group with 17 series. I know I can use @quantile for series, but I don´t know how to do it for all the series in the group at the same time. Is there a special function that would help me to do that or am I supposed to create a vector with all the values stacked?
Best,
Fede

EViews Matt
EViews Developer
Posts: 564
Joined: Thu Apr 25, 2013 7:48 pm

Re: Obtaining group statistics (time x series)

Postby EViews Matt » Fri Feb 28, 2020 9:46 am

Hello,

@quantile can be applied to matrices, generating a quantile over all elements in the matrix (not to be confused with @cquantile, which generates per-column quantiles). This allows you to avoid stacking the data by creating a matrix from your group via stom() or @convert. For example,

Code: Select all

@quantile(@convert(mygroup), .5)

jfgeli
Posts: 72
Joined: Fri Jan 30, 2009 6:29 pm

Re: Obtaining group statistics (time x series)

Postby jfgeli » Sat Feb 29, 2020 12:04 pm

Great. A million thanks!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 21 guests