Page 1 of 1

row-wise median for group

Posted: Sat Apr 05, 2014 9:54 am
by Vron
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!

Re: row-wise median for group

Posted: Sat Apr 05, 2014 11:06 am
by EViews Gareth
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.