is there "matplace" for tables??

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

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

basil
Posts: 37
Joined: Thu Apr 28, 2011 11:48 am

is there "matplace" for tables??

Postby basil » Thu May 05, 2011 12:51 pm

1. "matplace" allows you to to update parts of a matrix with another matrix. Is there a similar function that will work on tables?
2. Is there a function (or a way) to merge two sub-tables, something like table1[(1,2);5,2) attached to table2[(1,5);5,5), so to get the first two columns of table1 and first 5 columns for table2 joined together?

I would like to loop over different sub-samples, run a regression, and update the estimated coefficients in the matrix. However, I do not know how many iteration I will have nor do I know how many variables there will be, therefore, I do not know the dimensions of the matrix, which needs to be known at the time you declare the matrix. The nice thing about table is that you do not have to define the the dimensions upfront. Also, table allows strings (I need to name each row) while a matrix accepts only numbers.

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

Re: is there "matplace" for tables??

Postby EViews Gareth » Thu May 05, 2011 1:14 pm

table.copyrange or table.copytable.

basil
Posts: 37
Joined: Thu Apr 28, 2011 11:48 am

Re: is there "matplace" for tables??

Postby basil » Thu May 05, 2011 1:36 pm

Again, thanks for your help. I could not see this command in the guide. Could you explain with one simple example how to use it? Much appreciated.

Best,
Basile

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

Re: is there "matplace" for tables??

Postby EViews Gareth » Thu May 05, 2011 1:50 pm

From the manual:

Code: Select all

Examples table1.copytable table2 A10 copies all of the data in TABLE1 to the 1st column and 10th row of TABLE2. table1.copytable table2 1 5 copies all of the data in TABLE1 to the 5th column and first row of TABLE2.

Code: Select all

Examples table1.copyrange B2 D4 table2 A1 places a copy of the data from cell range B2 to D4 in TABLE1 to TABLE2 at cell A1 table1.copyrange 1 1 1 5 table2 1 3 copies 5 rows of data in the first column of data in table1 to the top of the 3rd column of TABLE2.

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: is there "matplace" for tables??

Postby EViews Jason » Thu May 05, 2011 2:57 pm

Similarly you could also use tabplace.

From the manual:

Code: Select all

Examples tabplace(table2,table1,"d1","B9","E17") places a copy of the data from cell range B9 to E17 in TABLE1 to TABLE2 at cell D1 tabplace(table3,table1,10,3,9,2,17,5) copies 8 rows of data (from row 9 to row 17) and 3 columns (from 2 to 5)of data in TABLE1 to the tenth row and 3rd column of TABLE3.

basil
Posts: 37
Joined: Thu Apr 28, 2011 11:48 am

Re: is there "matplace" for tables??

Postby basil » Fri May 06, 2011 7:26 am

Thanks for trying to help.

I could not find these in my manual. Are these new to EViews 7? Mine is EViews 6 and I could have these commands work:
"copyrange" is not a defined or is an illegal command
"matplace" works only for matrices, and when trying your example, it creates an error msg "too many arguments".


Any suggestion?

Thanks,
Basile

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

Re: is there "matplace" for tables??

Postby EViews Gareth » Fri May 06, 2011 7:53 am

They're all EV7 based. You're out of luck in EV6.

basil
Posts: 37
Joined: Thu Apr 28, 2011 11:48 am

Re: is there "matplace" for tables??

Postby basil » Fri May 06, 2011 8:58 am

thanks.

basil
Posts: 37
Joined: Thu Apr 28, 2011 11:48 am

Re: is there "matplace" for tables??

Postby basil » Fri May 06, 2011 8:58 am

thanks.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests