Stata Count

The count command returns the number of cases matching a condition.


Usage

Used alone, the count command returns the number of rows in memory.

count

It is more useful with a condition.

count if foo==1


Stored Results

count stores the number of cases matching the condition in r(N).


See also

Stata manual for count


CategoryRicottone

Stata/Count (last edited 2023-06-08 20:37:21 by DominicRicottone)