Dear Stata users,
I'm trying to remake below table in Stata with the new table command in Stata17.
My dataset looks something like this:
label def sygehus 1 "Aarhus", 2 "Odense", 3 "Aalborg"
label val sygehus sygehus
How on earth can I do that?
I have read the help files in Stata several times..
Kind regards
Frank
I'm trying to remake below table in Stata with the new table command in Stata17.
Department | Number of patients | Procedures 2021 | Proportion (95 % CI) 2021 | Proportion (95 % ci) 2020 |
Aarhus | 704 | 293 | 41.6(37.9;45.4) | 32.7(29.3;3) |
Odense | 753 | 232 | 30.8(27.5;34.2) | 31.2(28;34.6) |
Aalborg | 366 | 97 | 26.5(22.1;31.3) | 28.7(23.9;34) |
Total | 1823 | 622 | 34.1(31.9;36.3) | 31.4(29.3;33.6) |
patid | sygehus | procedure | year |
1 | 1 | 0 | 2020 |
2 | 2 | 1 | 2020 |
3 | 3 | 0 | 2021 |
4 | 1 | 1 | 2021 |
5 | 2 | 1 | 2020 |
6 | 3 | 0 | 2021 |
7 | 1 | 1 | 2020 |
8 | 2 | 1 | 2021 |
9 | 3 | 0 | 2020 |
label val sygehus sygehus
How on earth can I do that?
I have read the help files in Stata several times..
Kind regards
Frank