Matrix manipulation in Stata can be a time-consuming and tedious task, especially when it is necessary to subset or rearrange elements from large matrices based on nonconsecutive elements. Compared with Mata, these tasks require more time, more code, and sometimes more complex output. The purpose of this article is to introduce submatrix, a command to manipulate matrix elements using row (and column) names, numbers, and equations.
Spinelli, D. (2023). Improving flexibility and ease of matrix subsetting: The submatrix command. THE STATA JOURNAL, 23(4), 1045-1056 [10.1177/1536867X231212439].
Improving flexibility and ease of matrix subsetting: The submatrix command
Spinelli, D
2023
Abstract
Matrix manipulation in Stata can be a time-consuming and tedious task, especially when it is necessary to subset or rearrange elements from large matrices based on nonconsecutive elements. Compared with Mata, these tasks require more time, more code, and sometimes more complex output. The purpose of this article is to introduce submatrix, a command to manipulate matrix elements using row (and column) names, numbers, and equations.File in questo prodotto:
File | Dimensione | Formato | |
---|---|---|---|
Spinelli-2023-Stata J-VoR.pdf
Solo gestori archivio
Tipologia di allegato:
Publisher’s Version (Version of Record, VoR)
Licenza:
Tutti i diritti riservati
Dimensione
190.18 kB
Formato
Adobe PDF
|
190.18 kB | Adobe PDF | Visualizza/Apri Richiedi una copia |
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.