Vector in EViews

For questions regarding programming in the EViews programming language.

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

loulouviews
Posts: 60
Joined: Wed Mar 11, 2015 2:19 am

Vector in EViews

Postby loulouviews » Wed Aug 19, 2015 2:35 am

Hi everybody,

I'm quite puzzled with the use of vectors in EViews as I didn't find how to do these two things :
- how to get the length of a vector (@len is for strings) ?
- How can I create a vector and assign a list of values to it ? writing something like

Code: Select all

vector(4) myVector=(1,2,3,4)
is not working.

Thanks a lot for your replies !!

Btw, I'm using EViews 8 Enterprise.

Loulouviews

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

Re: Vector in EViews

Postby EViews Gareth » Wed Aug 19, 2015 7:07 am

Code: Select all

!length = @rows(myvector) vector(4) myvector myvector.fill 1, 2, 3, 4

loulouviews
Posts: 60
Joined: Wed Mar 11, 2015 2:19 am

Re: Vector in EViews

Postby loulouviews » Thu Sep 03, 2015 3:37 am

Thanks for your reply !

Loulouviews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest