I have a list of patients who have pulmonary nodule treatment with three different types of embolic agents (MVP, AVM, or Coil). My data is saved as presented below. I want to know the following count
How many patients (ID) have only MVP?
How many patients (ID) have only Coil?
How many patients (ID) have MVP and Coil?
How many patients (ID) have AVP and Coil?
Also, I want to count how many coils per patients (ID)
ID Embolic1 Embolic2 Embolic3 Embolic4 Embolic5 Embolic6 Embolic7 Embolic8 Embolic9 Embolic10 Embolic11
1 MVP
2 Coil Coil Coil Coil Coil Coil Coil Coil Coil Coil Coil
3 Coil Coil
3 AVP AVP
3 Coil Coil
3 Coil Coil Coil Coil Coil Coil Coil
3 Coil Coil
3 Coil Coil
3 Coil Coil Coil Coil Coil Coil
3 Coil Coil Coil Coil Coil Coil Coil Coil
3 Coil Coil Coil Coil Coil Coil Coil
3 Coil Coil
3 MVP Coil Coil Coil Coil Coil Coil Coil Coil Coil
3 Coil Coil
3 Coil Coil Coil Coil Coil Coil Coil Coil Coil Coil Coil
4 Coil Coil
4 Coil Coil
5 Coil Coil
5 Coil Coil
5 Coil
6 Coil Coil Coil Coil Coil
7 MVP
7 MVP Coil
8 MVP Coil Coil Coil Coil
9 Coil Coil Coil Coil
10 AVP
11 AVP
11 Coil Coil Coil Coil Coil Coil
11 AVP
11 Coil Coil Coil Coil Coil Coil
12 Coil Coil Coil
12 AVP
13 Coil Coil Coil Coil
14 Coil Coil Coil
15 Coil Coil Coil Coil Coil
15 Coil Coil Coil Coil Coil Coil Coil Coil Coil Coil Coil
15 AVP
15 Coil
15 Coil Coil Coil Coil Coil Coil Coil Coil Coil Coil
15 Coil Coil Coil Coil Coil Coil Coil Coil
15 AVP
Related Posts with Counting different variable associated with one variable
Exporting Tables from StataHello. I am currently writing my thesis and I have finished all my analysis. However, I am now strug…
ppml cluster - Gravity on product level with only one importerDear all I am evaluating the effect on american imports of the trade war dispute between China and …
Combining Monthly and Yearly DataI am working on inflation time series data. I have Yearly and Monthly data but cannot do tset becaus…
Subgroup analysis in stcoxDear Statalisters, In this first post on Statlist I apologize in advance if the format or details a…
Test of difference between meansHi, I have data where I have compared the means and from visualising it I can see that one group ha…
Subscribe to:
Post Comments (Atom)
0 Response to Counting different variable associated with one variable
Post a Comment