Dear Statalist-users,
I would like to save the names of all companies c_* to use them as rownames of matrix mat1. Which works now that I created locals for every year `l'. I don´t know why dropping `rownnames' creats a comformatability error, looping through the years l.
For the matrix beta I would like to have the rownames of the companies and then the year. The problem is that the year I am currently in is just added to the very last company each year. I tried to use strings or generate a matrix or varialbe to store the rownames, but nothing works.
Thank you very much
I would like to save the names of all companies c_* to use them as rownames of matrix mat1. Which works now that I created locals for every year `l'. I don´t know why dropping `rownnames' creats a comformatability error, looping through the years l.
For the matrix beta I would like to have the rownames of the companies and then the year. The problem is that the year I am currently in is just added to the very last company each year. I tried to use strings or generate a matrix or varialbe to store the rownames, but nothing works.
Code:
forvalues l = 1995(1)2015 { ... foreach companies of varlist c_* { ... local rownames_`l' `rownnames_`l'' `companies' matrix rownames mat1 = `rownames_`l'' matrix rownames beta_`l' = "`rownames_`l''_`l'"
Comment