Hello everybody, I have a problem that is apparently simple but to me it seems complicated.
I have demographic data about the age of people living in various cities from 1992 to 2019, and I want to compute the average age for each city in each year. The problem is that I have only variables in a range of ages, namely the number of inhabitants that have an age between 0-4, 10-14, 15-19 and so forth, like that
:
I would like to compute the average age by municipality (Agliè, Airasca etc.) every year. Is there a solution? I was thinking that I could take the median age for each range (for example, in the range between 0 and 4 I could pretend that all people that are between 0 and 4 years old are actually 2 years old), but still I don't know then how to compute the average age (I would have simply the frequencies of the ages). Thank you in advance.
I have demographic data about the age of people living in various cities from 1992 to 2019, and I want to compute the average age for each city in each year. The problem is that I have only variables in a range of ages, namely the number of inhabitants that have an age between 0-4, 10-14, 15-19 and so forth, like that
:
I would like to compute the average age by municipality (Agliè, Airasca etc.) every year. Is there a solution? I was thinking that I could take the median age for each range (for example, in the range between 0 and 4 I could pretend that all people that are between 0 and 4 years old are actually 2 years old), but still I don't know then how to compute the average age (I would have simply the frequencies of the ages). Thank you in advance.
Comment