row-wise median for group

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

Vron
Posts: 6
Joined: Wed Jan 01, 2014 1:27 pm

row-wise median for group

Postby Vron » Sat Apr 05, 2014 9:54 am

Hello

I need a series or vector with the median values for lots of series-objects. Is there a function to calculate the row-wise median in a group? Or a function to calculate the median for each column in a matrix? I only found this kind of functions for the mean.

Thank you!

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

Re: row-wise median for group

Postby EViews Gareth » Sat Apr 05, 2014 11:06 am

Unfortunately there isn't. It is on our list of things to add.

Until then, all you can do is convert the group into a matrix (stom), then extract the rows one at a time (@rowextract) and calculate the median of each row vector.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests