Hi,
I'm with the data like follows,
1. I was wondering how can I figure out whether both Company B and C are present in a Market or not (may be by generating a dummy).
2. And how to count the Companies show in each Market in different year?
Appreciate any help.
I'm with the data like follows,
| Market | Company | Time |
| 1 | A | 2009 |
| 1 | B | 2009 |
| 1 | C | 2009 |
| 2 | B | 2009 |
| 2 | C | 2009 |
| 2 | D | 2009 |
| 2 | E | 2009 |
| 3 | A | 2009 |
| 3 | D | 2009 |
| 3 | E | 2009 |
| 3 | F | 2009 |
| Market | Company | Time |
| 1 | A | 2010 |
| 1 | B | 2010 |
| 1 | C | 2010 |
| 1 | D | 2010 |
| 2 | B | 2010 |
| 2 | C | 2010 |
| 2 | D | 2010 |
| 2 | E | 2010 |
| 3 | A | 2010 |
| 3 | D | 2010 |
| 3 | E | 2010 |
| 3 | F | 2010 |
2. And how to count the Companies show in each Market in different year?
Appreciate any help.

Comment