Hello friends,
I am trying to quietly tabulate a group of variables and at the same time generate a dummy of my preference.
So let me specify how this goes. I have data on exporters, importers, commodity code and year. In order to create a panel I had to create a group named "i" with the command
that contained exporter importer and commodity code. I did this to create my cross section and with year as my time I create a panel with i and year. Before I create the panel I want to tabulate i and generate a dummy. My data are over 2 million so I have a major problem in tabulating. Through this forum I found commands such as
.
The command
works for me just fine, however it does not give me the chance to
and generate my dummy at the same row.
So to wrap it up I am looking for something like this:
but since tabulate cannot take too many values more something like this
.
I want to bigtab my group "i" and generate my dummy "Country_Pair_i" at the same time.
Sorry for the (in case) complicated post and thank you in advance!
I am trying to quietly tabulate a group of variables and at the same time generate a dummy of my preference.
So let me specify how this goes. I have data on exporters, importers, commodity code and year. In order to create a panel I had to create a group named "i" with the command
Code:
egen i = group(exporter importer commodity_code)
Code:
collapse, table, bigtab
The command
Code:
Bigtab
Code:
bigtab i
So to wrap it up I am looking for something like this:
Code:
quietly tabulate i, gen(Country_Pair_i)
Code:
quietly bigtab i, gen(Country_Pair_i)
I want to bigtab my group "i" and generate my dummy "Country_Pair_i" at the same time.
Sorry for the (in case) complicated post and thank you in advance!
Comment