@pmin

For questions regarding programming in the EViews programming language.

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

Bob
Posts: 30
Joined: Mon Jan 17, 2022 6:10 am

@pmin

Postby Bob » Thu May 02, 2024 4:30 pm

Hello,

scalar toto=@pmin(2,3)

The response from EViews :

@PMIN is an illegal or reserved name in "SCALAR TOTO=@PMIN(2,3)

Is it normal? What did I not understand?

Thank you

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

Re: @pmin

Postby EViews Gareth » Thu May 02, 2024 6:22 pm

@pmin/max only work on series.

Code: Select all

wfcreate u 10
series a = @nrnd
series b = @nrnd
series mymin = @pmin(a,b)
Follow us on Twitter @IHSEViews

Bob
Posts: 30
Joined: Mon Jan 17, 2022 6:10 am

Re: @pmin

Postby Bob » Fri May 03, 2024 4:41 am

Thanks. Actually, I wanted the minimum of two scalars to avoid my Rube Goldberg machine below! But you probably have something simpler, right?

pageselect mens
smpl @all
var ipcsj_ze_var.ec 1 11 log(ipchsj_ze_d11) log(ms_recue_ze) @exogdual tx_chge_eurodol_m_f..log(px_imp_ze_f) ...
string estim_range = ipcsj_ze_var.@smpl
string fcst_date = @right(estim_range, @len(estim_range) - @instr(estim_range, " "))
string m=@otod(@dtoo(fcst_date)+1)
smpl {m} {fin_prev}
ipcsj_ze_var.forecast(g, e, f=na) f
smpl @all


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 13 guests