Put Scalars into a matrix

For questions regarding programming in the EViews programming language.

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

marcsean
Posts: 14
Joined: Fri Jun 17, 2011 11:16 pm

Put Scalars into a matrix

Postby marcsean » Fri Aug 12, 2011 11:28 am

Hi,

I have generated about 1000 scalars and I want to put them together into a series or a matrix in order to compute the quantile funciton.
How do I do that?

Thank you.

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

Re: Put Scalars into a matrix

Postby EViews Gareth » Fri Aug 12, 2011 11:43 am

Code: Select all

mat(1,1) = scalar1 mat(2,1) = scalar2
etc...


If they've got a nice naming pattern, you could for loop it:

Code: Select all

for !i=1 to 1000 mat(!i,1) = scalar{!i} next

marcsean
Posts: 14
Joined: Fri Jun 17, 2011 11:16 pm

Re: Put Scalars into a matrix

Postby marcsean » Fri Aug 12, 2011 1:51 pm

Thank you.

I want to estimate 10000 equations within a programme, however eviews stops, when it is time to estimate the 1000th equation. Is this the limit eviews can handle?

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

Re: Put Scalars into a matrix

Postby EViews Gareth » Fri Aug 12, 2011 1:55 pm

Nope, I just created 20,000 equations without a problem.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests