export observation into a matrix

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

superjocker
Posts: 27
Joined: Mon Mar 30, 2020 5:45 pm

export observation into a matrix

Postby superjocker » Tue Jul 14, 2020 7:32 am

Hi, I am trying to take an observation from a series, for example, observation corresponding to the date 06/03/2018, and save it in a matrix. Anyone knows how to do it?

Thanks

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

Re: export observation into a matrix

Postby EViews Gareth » Tue Jul 14, 2020 7:34 am

Code: Select all

smpl 2018/06/13 2018/06/13
matrix a = @convert(x)


or

Code: Select all

a(3,3) = @elem(x, "2018/06/13")
Follow us on Twitter @IHSEViews

superjocker
Posts: 27
Joined: Mon Mar 30, 2020 5:45 pm

Re: export observation into a matrix

Postby superjocker » Tue Jul 14, 2020 8:20 am

Perfect, thank you.

Regards


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 17 guests