Skip to content
Prev 29274 / 29559 Next

Calculating median age for a group of US census blocks?

This is correct on the second question, at least for more recent censuses.  On the first question, imagine a block where the ages of three individuals are 60, 50, and 40, and another one where the ages are 20, 20, and 20.  Using your approach you would have 50 * 3 = 150 for the first block, and 20*3 = 60 for the second block.  The median of 60 and 150 is 105.  Even dividing that by three you get 35, which is not the correct median age (30).

-----Original Message-----
From: R-sig-Geo <r-sig-geo-bounces at r-project.org> On Behalf Of Josiah Parry
Sent: Monday, August 7, 2023 2:38 PM
To: Kevin Zembower <kevin at zembower.org>
Cc: r-sig-geo at r-project.org
Subject: Re: [R-sig-Geo] Calculating median age for a group of US census blocks?

Hey Kevin, I don't think you're going to be able to get individual level data from the US Census Bureau. The closest you may be able to get is the current population survey (CPS) which I believe is also available via tidycensus. Regarding your first question, I'm not sure I follow what your objective is with it. I would use a geography of census block groups as the measure of median for census block groups. Otherwise it is unclear how you are defining what a "group of blocks" is.
On Mon, Aug 7, 2023 at 2:34?PM Kevin Zembower via R-sig-Geo < r-sig-geo at r-project.org> wrote:

            
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
Message-ID: <BLAPR20MB39382F6CD501D6B1ED8F2C11BE0CA@BLAPR20MB3938.namprd20.prod.outlook.com>
In-Reply-To: <CAL3ufUJVvcZvdtYM2V0tmo9U-RMZ1zOGL8NZDhjK7V8GFc77HA@mail.gmail.com>