Hello dear all,
I have panel data from 26 countries from 1995-2020. I want to get the frequency of the 3 variables ( different policies) --eg percent of the time is market, the percent is not market, and percent using technology.
also, each of them also have three sub-components.
when I used the : I try to get these table once onlcy based on the main component and then main component with the sub-component.
and
the table is so confusing.
I appreciate receiving your comments how can I get this table in panel data?
Many thanks in advance.
Best regards,
I have panel data from 26 countries from 1995-2020. I want to get the frequency of the 3 variables ( different policies) --eg percent of the time is market, the percent is not market, and percent using technology.
also, each of them also have three sub-components.
when I used the : I try to get these table once onlcy based on the main component and then main component with the sub-component.
Code:
table mkt , statistic(frequency) statistic(percent)
------------------------------
| Frequency Percent
--------+---------------------
mkt |
0 | 208 2.18
.17 | 292 3.06
.33 | 219 2.29
.5 | 579 6.06
.67 | 1,158 12.12
.83 | 1,891 19.80
1 | 1,662 17.40
1.17 | 1,024 10.72
1.33 | 446 4.67
1.5 | 364 3.81
1.67 | 250 2.62
1.83 | 183 1.92
2 | 229 2.40
2.17 | 226 2.37
2.33 | 115 1.20
2.5 | 151 1.58
2.67 | 88 0.92
2.83 | 69 0.72
3 | 63 0.66
3.17 | 60 0.63
3.33 | 33 0.35
3.5 | 33 0.35
3.67 | 60 0.63
3.83 | 47 0.49
4 | 48 0.50
4.17 | 54 0.57
Total | 9,552 100.00
------------------------------
Code:
. table nmkt , statistic(frequency) statistic(percent)
------------------------------
| Frequency Percent
--------+---------------------
nmkt |
0 | 112 1.17
.25 | 325 3.40
1 | 297 3.11
1.25 | 50 0.52
1.5 | 1,264 13.23
1.75 | 437 4.57
2 | 462 4.84
2.25 | 61 0.64
2.5 | 985 10.31
2.75 | 73 0.76
3 | 496 5.19
3.25 | 34 0.36
3.5 | 120 1.26
4 | 143 1.50
4.25 | 375 3.93
4.5 | 153 1.60
4.75 | 790 8.27
5 | 633 6.63
5.25 | 404 4.23
5.5 | 1,838 19.24
5.75 | 353 3.70
6 | 147 1.54
Total | 9,552 100.00
------------------------------
.
Code:
. table mkt co2_tax_mr nox_tax_mr sox_tax_mr , statistic(frequency) statistic(percent)
---------------------------------------------------------------------------------
| sox_tax_mr
| 0 1 2 3 4 5 6 Total
----------------------+----------------------------------------------------------
mkt |
0 |
co2_tax_mr |
0 |
nox_tax_mr |
0 |
Frequency | 208 208
Percent | 2.18 2.18
Total |
Frequency | 208 208
Percent | 2.18 2.18
Total |
nox_tax_mr |
0 |
Frequency | 208 208
Percent | 2.18 2.18
Total |
Frequency | 208 208
Percent | 2.18 2.18
.17 |
co2_tax_mr |
0 |
nox_tax_mr |
0 |
Frequency | 292 292
Percent | 3.06 3.06
Total |
Frequency | 292 292
Percent | 3.06 3.06
Total |
nox_tax_mr |
0 |
Frequency | 292 292
Percent | 3.06 3.06
Total |
Frequency | 292 292
Percent | 3.06 3.06
.33 |
co2_tax_mr |
0 |
nox_tax_mr |
0 |
Frequency | 219 219
Percent | 2.29 2.29
Total |
Frequency | 219 219
Percent | 2.29 2.29
Total |
nox_tax_mr |
0 |
I appreciate receiving your comments how can I get this table in panel data?
Many thanks in advance.
Best regards,

Comment