simple question on stom and @convert

For questions regarding programming in the EViews programming language.

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

pcruzd
Posts: 14
Joined: Thu Dec 14, 2017 11:53 am

simple question on stom and @convert

Postby pcruzd » Wed May 29, 2019 9:36 am

Hi, Im using the stom command in a loop and I can't make the formed matrix not to prompt in every loop its generated, even if the program is running quiet mode. I tryied using @convert as an alternative but it keeps happening. Any hints?

PD. im using Eviews 9

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

Re: simple question on stom and @convert

Postby EViews Gareth » Wed May 29, 2019 9:42 am

What do you mean by "not to prompt in every loop its generated"? A program such as the follow has no prompting.

Code: Select all

create u 10
for !i=1 to 5
   series x!i=nrnd
   stom(x!i, y!i)
next
Follow us on Twitter @IHSEViews

pcruzd
Posts: 14
Joined: Thu Dec 14, 2017 11:53 am

Re: simple question on stom and @convert

Postby pcruzd » Wed May 29, 2019 9:51 am

by prompting I mean a window with the newly created matrix pops-up in every loop. I thought that it shouldn't by happenign but it does. The program is very similar to the one you wrote

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

Re: simple question on stom and @convert

Postby EViews Gareth » Wed May 29, 2019 10:17 am

Does it happen with my program?
Follow us on Twitter @IHSEViews

pcruzd
Posts: 14
Joined: Thu Dec 14, 2017 11:53 am

Re: simple question on stom and @convert

Postby pcruzd » Wed May 29, 2019 1:02 pm

It didn't. It turns out its not the stom comand which is causing the window to prompt but the matrix.cov comand that follows in the loop. Is there any way to mute it? Check the program below:

Code: Select all

create u 10
group gr
for !i=1 to 5
   series x!i=nrnd
   gr.add x!i
   stom(x!i, y!i)
next

stom(gr, mat)
mat.cov(out=s) ' HERE IS THE PROBLEM

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

Re: simple question on stom and @convert

Postby EViews Gareth » Wed May 29, 2019 1:10 pm

Code: Select all

do mat.cov(out=s)
Follow us on Twitter @IHSEViews

pcruzd
Posts: 14
Joined: Thu Dec 14, 2017 11:53 am

Re: simple question on stom and @convert

Postby pcruzd » Wed May 29, 2019 1:44 pm

It worked perfect, thanks!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 58 guests