Hello,
I am having some difficulties with the count command.. I have in a panel data with 359597 observations in a period 1998-2012. As you can see I have several firms, but I don't have all the values for all the variables. My questions are: how to find the total number of firms? The number of firms are not consecutive..
How to find how many firms are exporting (not the zero value of exporting )? I can find the total number of exporting ( but some firm export for some years, some other firms they do not export at all, some export all the years)
thanks a lot in advance...
+-------------------------------------+
firm year sales exportr~e
|-------------------------------------|
230. 38 2000 8381.7595 0
231. 38 2001 7432.8313 0
232. 38 2002 4730.7316 0
233. 41 2008 1585615.5 989714.24
234. 41 2009 2635737 0
|-------------------------------------|
235. 41 2010 3050670 0
236. 41 2011 2464262.4 0
237. 41 2012 1995193.7 0
238. 42 1999 1557.2218 0
239. 42 2001 3133903.7 0
|-------------------------------------|
240. 42 2003 1760325.9 0
241. 42 2005 3855691.9 0
242. 42 2006 3218257.6 0
243. 42 2007 6165185.1 0
244. 42 2008 4405523.8 0
|-------------------------------------|
245. 42 2009 4634218.5 0
246. 42 2010 1595580 0
247. 42 2011 1464526 0
248. 42 2012 1593594.9 51491.243
249. 43 1999 881.66236 824.41156
|-------------------------------------|
250. 43 2001 733307.2 695797.88
+-------------------------------------+
I am having some difficulties with the count command.. I have in a panel data with 359597 observations in a period 1998-2012. As you can see I have several firms, but I don't have all the values for all the variables. My questions are: how to find the total number of firms? The number of firms are not consecutive..
How to find how many firms are exporting (not the zero value of exporting )? I can find the total number of exporting ( but some firm export for some years, some other firms they do not export at all, some export all the years)
thanks a lot in advance...
+-------------------------------------+
firm year sales exportr~e
|-------------------------------------|
230. 38 2000 8381.7595 0
231. 38 2001 7432.8313 0
232. 38 2002 4730.7316 0
233. 41 2008 1585615.5 989714.24
234. 41 2009 2635737 0
|-------------------------------------|
235. 41 2010 3050670 0
236. 41 2011 2464262.4 0
237. 41 2012 1995193.7 0
238. 42 1999 1557.2218 0
239. 42 2001 3133903.7 0
|-------------------------------------|
240. 42 2003 1760325.9 0
241. 42 2005 3855691.9 0
242. 42 2006 3218257.6 0
243. 42 2007 6165185.1 0
244. 42 2008 4405523.8 0
|-------------------------------------|
245. 42 2009 4634218.5 0
246. 42 2010 1595580 0
247. 42 2011 1464526 0
248. 42 2012 1593594.9 51491.243
249. 43 1999 881.66236 824.41156
|-------------------------------------|
250. 43 2001 733307.2 695797.88
+-------------------------------------+
Comment