Defining a series

For questions regarding programming in the EViews programming language.

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

Elderfield.A
Posts: 78
Joined: Thu Jul 11, 2019 10:47 pm

Defining a series

Postby Elderfield.A » Tue Jan 28, 2020 5:44 pm

Hi,

Does the eviews have the capability to define a series object as below:

Code: Select all


smpl 2019q3 2020q2
series x = (100,200,300, 400)



Essentially, I want to set the sample and define the series as a vector with each row representing time.

Thanks

Adam

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

Re: Defining a series

Postby EViews Gareth » Tue Jan 28, 2020 5:53 pm

Not in quite the same way, but you can do this:

Code: Select all

series x
x.fill(o="2019q3") 100,200,300,400

(which doesn't require the sample being set)

or:

Code: Select all

smpl 2019q3 2020q2
series x
x.fill(s) 100,200,300,400
Follow us on Twitter @IHSEViews

Elderfield.A
Posts: 78
Joined: Thu Jul 11, 2019 10:47 pm

Re: Defining a series

Postby Elderfield.A » Tue Jan 28, 2020 5:58 pm

Perfect - thank you!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 12 guests