Max/Min in Matrix

For questions regarding programming in the EViews programming language.

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

Katjes
Posts: 58
Joined: Thu Oct 02, 2008 5:46 am

Max/Min in Matrix

Postby Katjes » Thu Aug 22, 2013 6:23 am

Hi, I try to get the max and min of each column of a matrix, using the cmax and cmin command.
However, if the matrix contains NA values these commands don't work,
Therefore I created a table including the stats of the matrix, and then create a vector, which is filled by the min and max values given in the stats table.
Is it possible to get it easier (by command)? Or what is the reason, why cmin/cmax are not working correctly?

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

Re: Max/Min in Matrix

Postby EViews Gareth » Thu Aug 22, 2013 6:54 am

They are working correctly :wink:

If you want the non-NA version, then the way you're doing it is probably the easiest.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests