Mean age at first event
Using example data:
ID | phenocode | age |
FG1 | EXAMPLE_ENDPOINT | 45 |
FG1 | ENDPOINT_XYZ | 46 |
FG1 | DEATH | 47 |
FG2 | EXAMPLE_ENDPOINT | 30 |
FG2 | EXAMPLE_ENDPOINT | 30.1 |
FG3 | ENDPOINT_XYZ | 50 |
---|
In this example the mean age at first event is 37.5.
The mean age at first event for EXAMPLE_ENDPOINT is computed by:
- selecting individuals having EXAMPLE_ENDPOINT: FG1 and FG2
- for these individuals, taking the age of their first event of EXAMPLE_ENDPOINT: 45 for FG1 and 30 for FG2
- computing the mean of these values
So the mean age at first event is Mean(45, 30) = 37.5.