Stata’s main data model treats observations in rows and variables in columns quite differently, but rowwise problems also arise that require working against the grain. This column shows how to exploit existing functions and egen functions when they exist and apply to such problems. It offers advice on how to build your own loops, egen functions, or programs when needed. Mata provides especially convenient tools for constructing many such functions and programs, centered on putting selected data into matrices and then processing each observation as a separate vector. Two programs, rowsort and rowranks, are formally published with this column
Mata is Stata’s matrix language. In the Mata Matters column, we show how Mata can be used interactiv...
Rather than process estimation results in other applications, such as spreadsheets, this article sho...
Spells in time series (and more generally in any kind of one-dimensional series) may be defined as s...
Stata’s main data model treats observations in rows and variables in columns quite differently, but ...
Matrices in Stata can serve as look-up tables. Because Stata will accept references to matrix elemen...
Data for people in a family, firms in a sector, or members of any kind of group are often analyzed u...
Functions in Stata take two main forms, built-in functions that are part of the executable and egen ...
Counting panels, and more generally groups, is sometimes possible in Stata through a reduction comma...
any problems in data management center on relating values to values in other observations, either wi...
Mata is Stata’s matrix language. In the Mata Matters column, we show how Mata can be used interactiv...
Table-like graphs can be interesting, useful, and even mildly innovative. This column outlines some ...
Many problems in data management center on relating values to values in other observations, either w...
Mata is Stata’s matrix language. In the Mata Matters column, we show how Mata can be used interactiv...
Mata is Stata’s matrix language. In the Mata Matters column, we show how Mata can be used interactiv...
Three user-written commands are reviewed as illustrations of different approaches to tabulation prob...
Mata is Stata’s matrix language. In the Mata Matters column, we show how Mata can be used interactiv...
Rather than process estimation results in other applications, such as spreadsheets, this article sho...
Spells in time series (and more generally in any kind of one-dimensional series) may be defined as s...
Stata’s main data model treats observations in rows and variables in columns quite differently, but ...
Matrices in Stata can serve as look-up tables. Because Stata will accept references to matrix elemen...
Data for people in a family, firms in a sector, or members of any kind of group are often analyzed u...
Functions in Stata take two main forms, built-in functions that are part of the executable and egen ...
Counting panels, and more generally groups, is sometimes possible in Stata through a reduction comma...
any problems in data management center on relating values to values in other observations, either wi...
Mata is Stata’s matrix language. In the Mata Matters column, we show how Mata can be used interactiv...
Table-like graphs can be interesting, useful, and even mildly innovative. This column outlines some ...
Many problems in data management center on relating values to values in other observations, either w...
Mata is Stata’s matrix language. In the Mata Matters column, we show how Mata can be used interactiv...
Mata is Stata’s matrix language. In the Mata Matters column, we show how Mata can be used interactiv...
Three user-written commands are reviewed as illustrations of different approaches to tabulation prob...
Mata is Stata’s matrix language. In the Mata Matters column, we show how Mata can be used interactiv...
Rather than process estimation results in other applications, such as spreadsheets, this article sho...
Spells in time series (and more generally in any kind of one-dimensional series) may be defined as s...