I am pretty inexperienced with Stata -- hoping someone can help me here, as I can't figure out how to word what I am trying to do in order to google:
I have a list of patients for whom each has an estimated value provided by a physician.
In this Example 1 below, there are 5 patients, with an average estimate of 68.75 (one missing value) made by 3 unique physicians.
Example 1
In Example 2 below, there are 9 patients, with an average estimate of 67.8 (two missing values) made by 5 unique physicians.
Example 2
How can I write code to determine the number of unique physicians that contributed to the average estimate value?
Thank you in advance!
Judith
I have a list of patients for whom each has an estimated value provided by a physician.
In this Example 1 below, there are 5 patients, with an average estimate of 68.75 (one missing value) made by 3 unique physicians.
Example 1
estimate | physician | |
patient #1 | 50 | 1 |
patient #2 | 50 | 2 |
patient #3 | 100 | 3 |
patient #4 | missing | 3 |
patient #5 | 75 | 3 |
68.7 |
Example 2
estimate | physician | |
patient #1 | 50 | 1 |
patient #2 | 50 | 2 |
patient #3 | 100 | 3 |
patient #4 | missing | 3 |
patient #5 | 75 | 3 |
patient #6 | 75 | 4 |
patient #7 | missing | 5 |
patient #8 | 50 | 6 |
patient #9 | 75 | 6 |
67.8 |
How can I write code to determine the number of unique physicians that contributed to the average estimate value?
Thank you in advance!
Judith
Comment