find the minimum of a bunch of scalars

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

akoh
Posts: 12
Joined: Thu Dec 07, 2023 7:55 pm

find the minimum of a bunch of scalars

Postby akoh » Wed Sep 11, 2024 6:14 pm

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!

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

Re: find the minimum of a bunch of scalars

Postby EViews Gareth » Thu Sep 12, 2024 8:23 am

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


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest