@pmin
Posted: Thu May 02, 2024 4:30 pm
by Bob
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
Re: @pmin
Posted: Thu May 02, 2024 6:22 pm
by EViews Gareth
@pmin/max only work on series.
Code: Select all
wfcreate u 10
series a = @nrnd
series b = @nrnd
series mymin = @pmin(a,b)
Re: @pmin
Posted: Fri May 03, 2024 4:41 am
by Bob
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