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.
Articolo in rivista - Articolo scientifico
column names; permutation vectors; pr0077; row names; submatrix;
English
21-dic-2023
2023
23
4
1045
1056
reserved
Spinelli, D. (2023). Improving flexibility and ease of matrix subsetting: The submatrix command. THE STATA JOURNAL, 23(4), 1045-1056 [10.1177/1536867X231212439].
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.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10281/456174
Citazioni
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 0
Social impact