mtos error message

For questions regarding programming in the EViews programming language.

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

eviewsnew
Posts: 22
Joined: Fri Apr 22, 2011 2:58 pm

mtos error message

Postby eviewsnew » Wed Apr 27, 2011 5:02 pm

I have a vector a, and i try to use mtos to convert it to a series b. My code is:

series b
mtos(a, b).

the error message is below

An exclaimation mark in a yellow triangle, is not defined in "mtos(a,b)".

Do you have any clue? thanks!

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

Re: mtos error message

Postby EViews Gareth » Wed Apr 27, 2011 6:06 pm

Cannot replicate:

Code: Select all

create u 100
vector(100) a
rnd(a)

series b
mtos(a,b)
Follow us on Twitter @IHSEViews

eviewsnew
Posts: 22
Joined: Fri Apr 22, 2011 2:58 pm

Re: mtos error message

Postby eviewsnew » Thu Apr 28, 2011 10:16 am

EViews Gareth wrote:Cannot replicate:

Code: Select all

create u 100
vector(100) a
rnd(a)

series b
mtos(a,b)



Hi Gareth,

thanks for the reply. I tested your code. It does work. But in my case, I don't need to create any vector with random number. I have already a vector. I have a vector called ur_sa0, which comes from a matrix sa. Then I make a series from this u_sa0. My code is below:

vector ur_sa0 = @vec(@transpose(sa)) 'sa is a matrix
series ur_sa 'declare new series
mtos (ur_sa0, ur_sa) 'create series ur_sa from vector ur_sa0


I can open and see the vector ur_sa0. It is normal. But i still get the message: exclamation mark in yellow triangle is not defined in "mtos(ur_sa0, ur_sa)"

wonder what is not defined ? can you advise?

thanks!

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

Re: mtos error message

Postby EViews Gareth » Thu Apr 28, 2011 11:01 am

You have a space between mtos and the (.
Follow us on Twitter @IHSEViews

eviewsnew
Posts: 22
Joined: Fri Apr 22, 2011 2:58 pm

Re: mtos error message

Postby eviewsnew » Thu Apr 28, 2011 1:53 pm

EViews Gareth wrote:You have a space between mtos and the (.


Sorry, and thank you!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 44 guests