is there "matplace" for tables??
Posted: 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.
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.