Hi, I have a panel data (large n and small T) with -id- as the panel variable and -year- as the time variable. The year variable ranges from 2000-2003 and id captures the number of firms.
The id variable is coded as follows:
--id-- --year--
1232 2000
1232 2001
1232 2002
1232 2003
1234 2000
1234 2001
1234 2002
1234 2003
When I summarise the dataset, minimum for id is 1 and max is 20,236. However, the id variable is not equally spaced so I cannot take 20,236 as the total number of firms in the data.
I need to find the number of firms in the dataset based on the id variable. How to proceed?
Related Posts with Number of ID Variable in Panel Data
Plotting prediction with confidence intervalsHi Statalisters, A bit rusty with my plotting, I cannot find how to solve a simple problem. I tried…
Mediation analysis for panel data with individual fixed effects (xtdpdml & gsem?)Dear all, I am working on strictly balanced panel data to evaluate individuals' activities on their…
Importing*.sav files from sub-directories using loop.Hi, I am trying to import .sav files from all sub-directories using the following, but nothing is ha…
How to loop variables' labels in stata Hello, I am using Stata 16.0, I have a dataset with many variables concerning election results. I h…
Inconsistent estimation sample levels using eydxHi everybody I am encountering a strange problem. I am using - margins, eydx - but it is not workin…
Subscribe to:
Post Comments (Atom)
0 Response to Number of ID Variable in Panel Data
Post a Comment