[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: storing values from within "by varname :" command
I have a dataset of individuals (and their characteristics) that belong
to some groups and live in different regions.
I would like to be able to extract frequencies of individuals by group
and region and store these frequencies in a different dataset, ultimately.
so, I have the following code:
by region group : count (if...)
and now I want this to be stored in a special matrix that has a vector
of group name, a vector of regions, and the vector of the result of the
I know I can bypass all this if I collapse the dataset using the "count"
But, my question is more general: it is about storing the output of some
command inside the "by varname :" construct.
Chair for Applied Microeconomics, Department of
Economics, Mannheim University, D-68131 Mannheim, Germany
Co-editor of JEPS: http://jeps.repec.org/
* For searches and help try: