SMOOTH is not a valid view for RESID

For questions regarding programming in the EViews programming language.

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

Alejandra Ruiz
Posts: 2
Joined: Mon Jul 23, 2018 3:14 pm

SMOOTH is not a valid view for RESID

Postby Alejandra Ruiz » Fri Jul 27, 2018 10:14 am

Hello, I have this script:


smpl @first @last-4
group demands *
for !i=1 to demands.@count
%name = demands.@seriesname(!i)
do %name.smooth(s,e) {%name}_sm_s
do %name.smooth(d,e) {%name}_sm_d
do %name.smooth(n,e,e) {%name}_sm_ht_ns
do %name.smooth(a,e,e,e) {%name}_sm_ht_ad
do %name.smooth(m,e,e,e) {%name}_sm_ht_m
do %name.ets(e=a,t=a, s=n) {%name}_ets_e_ad_t_ad
do %name.ets(e=m,t=m, s=n) {%name}_ets_e_m_t_m
do %name.ets(e=m,t=m, s=m) {%name}_ets_e_m_t_m_s_m
do %name.ets(e=a,t=a, s=a) {%name}_ets_e_a_t_a_s_a
next


but at the moment of running, it displays the following error: SMOOTH is not a valid view for RESID in "DO "RESID".SMOOTH(S,E) RESID_SM_S".

I do not know how to fix it....I will appreciate your help.

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

Re: SMOOTH is not a valid view for RESID

Postby EViews Gareth » Fri Jul 27, 2018 10:18 am

Code: Select all

smpl @first @last-4
group demands *
for !i=1 to demands.@count
%name = demands.@seriesname(!i)
do {%name}.smooth(s,e) {%name}_sm_s
do {%name}.smooth(d,e) {%name}_sm_d
do {%name}.smooth(n,e,e) {%name}_sm_ht_ns
do {%name}.smooth(a,e,e,e) {%name}_sm_ht_ad
do {%name}.smooth(m,e,e,e) {%name}_sm_ht_m
do {%name}.ets(e=a,t=a, s=n) {%name}_ets_e_ad_t_ad
do {%name}.ets(e=m,t=m, s=n) {%name}_ets_e_m_t_m
do {%name}.ets(e=m,t=m, s=m) {%name}_ets_e_m_t_m_s_m
do {%name}.ets(e=a,t=a, s=a) {%name}_ets_e_a_t_a_s_a
next
Follow us on Twitter @IHSEViews

Alejandra Ruiz
Posts: 2
Joined: Mon Jul 23, 2018 3:14 pm

Re: SMOOTH is not a valid view for RESID

Postby Alejandra Ruiz » Mon Jul 30, 2018 1:22 pm

Thanks!!! :)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 30 guests