Hello everyone!
I have a wide dataset with several rows per individual. How would you make sure to consider only one of the observations while calculating things like mean age. I only want to use the value of the first observation for each individual.
Let's say I want to calculate mean age and it varies per row because these are values recorded over several years. How would I consider only the first observation for each individual
Here is an example:
Any help would be appreciated!
I have a wide dataset with several rows per individual. How would you make sure to consider only one of the observations while calculating things like mean age. I only want to use the value of the first observation for each individual.
Let's say I want to calculate mean age and it varies per row because these are values recorded over several years. How would I consider only the first observation for each individual
Here is an example:
Beneficiary ID | Unique ID | Age |
EEEAVH9E | 1 | 72 |
EEEAVH9E | 1 | 72 |
EEEAVH9E | 1 | 73 |
EEEAVG7F | 2 | 80 |
EEEAVG7F | 2 | 81 |
Comment