7/26/2023 0 Comments Stata regress ifThen, we will confirm that each row is saved by plopping the command to view the matrices at the end.We’ll specifically call them “row1”, “row2”, and “row3”. Save the r(table) matrix for each regression to a custom named matrix.Run three regressions, one for each row, and.Use the -matrix- command to copy the contents of the r(table) to a custom matrix. Since we actually need to save 3 separate r(table) matrices to fill out the blank table (one for each row), you should do this anyway to help facilitate completing the table. Make sure to save the r(table) matrix as custom matrix before going any further. įor various reasons that you can read about here, r(table) is not a usual matrix and Stata will do funny things if you try to run matrix commands on it. You’ll note above (after the -matrix list r(table)- command) that Stata tells you that the r(table) matrix has 9 rows and 2 columns, or. These exist separate from the dataset, which is also basically a big spreadsheet. Matrices are basically small spreadsheets saved in the memory that can be accessed by referencing a cell reference. Copy it to a custom ‘typical’ matrix before doing anything else!
0 Comments
Leave a Reply. |