Registro completo |
Provedor de dados: |
AgEcon
|
País: |
United States
|
Título: |
Speaking Stata: Rowwise
|
Autores: |
Cox, Nicholas J.
|
Data: |
2012-04-16
|
Ano: |
2009
|
Palavras-chave: |
Rowsort
Rowranks
Rows
Functions
Loops
Egen
Mata
Minimum
Maximum
Median
Any
All
Distinct values
Sorting
Ranking
Research Methods/ Statistical Methods
|
Resumo: |
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.
|
Tipo: |
Article
|
Idioma: |
Inglês
|
Identificador: |
pr0046
http://purl.umn.edu/122706
|
Relação: |
Stata Journal>Volume 09, Number 1, 1st Quarter 2009
|
Formato: |
21
|
|