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
svy: mean and sorting estimated meansGreetings, Statalisters. I'm hoping this is something someone is willing and able to explain to me,…
Help with Recoding with Multiple LoopsHello, I have a series of variables that looks like job[i]_sched[y]. [i] varies from 1 to 6. [y] var…
qq PlotsHello everbody, I have estimated parameter alpha for each participant with six different methods. I…
addplot error after marginsplotI ran a model (dependent variable = gender) and 3 independent variables – year, position_department_…
svy:logit has more observations than simple logit commandI am working with survey data and use the svy command before running my logit regression as follows:…
Subscribe to:
Post Comments (Atom)
0 Response to Counting different variable associated with one variable
Post a Comment