Page 1 of 1

find the minimum of a bunch of scalars

Posted: Wed Sep 11, 2024 6:14 pm
by akoh
Dear Eviews community,

Suppose I have a bunch of scalars named as mape_alpha, mape_bravo, mape_charlie which stores the mean absolute percentage error from 3 different models.

Is there a function or some code snippet which I can use to return the minimum of these bunch of scalars please?

Thanks!

Re: find the minimum of a bunch of scalars

Posted: Thu Sep 12, 2024 8:23 am
by EViews Gareth
Do you want the minimum value, or which of the scalar is the minimum value?

Either way, the best approach is probably to put them into a vector, and then either use @min or @imin