Hello Everyone,
I am looking for a STATA command which can give sample distribution by year and how many firms I have for each year. Below is the example:
Year Number of observations Percent Number of unique firm Percent
2004 870 7.56 870 57.73
2005 890 7.73 89 5.91
2006 941 8.18 110 7.30
I have tried tab1 year, but it only gives me number of observations for each year not the number firms for each year.
Thank you in advance.
Regards
Jaskaran Kaur
Related Posts with Panel data sample distribution
Loop over several files in a directory and save each dataset in a new .dtaHello. I would like to repeat do-files for several datasets in a directory. I like to include such a…
Saving margins estimates as a new variableHi Statalisters, Is it possible to save margins estimates as a new variable? In the example below, I…
Hausman test issues in panel dataHi all, i am sonia kaur. I am using stata 15.1 version at tbe moment. I joined this forum recently a…
How do I keep only the matched observation after data set merge (STATA 15)Hi, I used the one to many formula to merge two data sets. Once done, how can I keep only the match…
Mixed effects model identificationThis isn’t necessarily a Stata specific question, but one that seems like it would still be relevant…
Subscribe to:
Post Comments (Atom)
0 Response to Panel data sample distribution
Post a Comment