Re: [R-sig-Geo] Calculating median age for a group of US census blocks?

2023-09-09 Thread Kevin Zembower via R-sig-Geo
> group, > > should I drop them and also drop the 9 youngest ages? > > > > I look forward to reading your thoughts. Thank you for any advice > > and > > guidance. > > > > -Kevin > > > > On Tue, 2023-08-08 at 12:00 +0200, r-sig-g

[R-sig-Geo] Calculating median age for a group of US census blocks?

2023-08-31 Thread Kevin Zembower via R-sig-Geo
lock), then calculate the median of those numbers > for > a group of blocks? > > 2. Is raw data on the ages of individuals available anywhere else in > the > census data? I can find tables such as P12, that breaks down the > population by age ranges or bins, but can't find specific data of > coun

Re: [R-sig-Geo] Calculating median age for a group of US census blocks?

2023-08-08 Thread Kevin Zembower via R-sig-Geo
Dexter, Thanks so much for your reply. I wasn't aware of the two sources you cite, and I'll be sure to include them in my work. The open Baltimore website, at https://data.baltimorecity.gov/datasets/neighborhood-1/explore, has statistics for my neighborhood, Radnor-Winston

Re: [R-sig-Geo] Calculating median age for a group of US census blocks?

2023-08-07 Thread Dexter Locke
Hi Kevin and all, Given the binned data, you could count the number of people per age class for those 10 blocks. You can then express that in a number of different ways, like percent under 25 years old, or by calculating the dependency ratio

Re: [R-sig-Geo] Calculating median age for a group of US census blocks?

2023-08-07 Thread Kevin Zembower via R-sig-Geo
Josiah, thanks for your reply. Regarding my objective, I'm trying to compile census statistics for the blocks that make up the neighborhood where I live. It consists of ten census blocks, of which I selected three for simplicity in my example. The census block-group which contains these ten

Re: [R-sig-Geo] Calculating median age for a group of US census blocks?

2023-08-07 Thread Jeff Boggs
From: R-sig-Geo on behalf of Kevin Zembower via R-sig-Geo Sent: Monday, August 7, 2023 14:33 To: r-sig-geo@r-project.org Subject: [R-sig-Geo] Calculating median age for a group of US census blocks? Hello, all, I'd like to obtain the median age for a population in a specific group

Re: [R-sig-Geo] Calculating median age for a group of US census blocks?

2023-08-07 Thread Kevin Zembower via R-sig-Geo
0 is 105. Even dividing that > by three you get 35, which is not the correct median age (30). > > -Original Message- > From: R-sig-Geo On Behalf Of Josiah Parry > Sent: Monday, August 7, 2023 2:38 PM > To: Kevin Zembower > Cc: r-sig-geo@r-project.org > Subject: Re

Re: [R-sig-Geo] Calculating median age for a group of US census blocks?

2023-08-07 Thread Sean Trende via R-sig-Geo
-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

Re: [R-sig-Geo] Calculating median age for a group of US census blocks?

2023-08-07 Thread Josiah Parry
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

[R-sig-Geo] Calculating median age for a group of US census blocks?

2023-08-07 Thread Kevin Zembower via R-sig-Geo
Hello, all, I'd like to obtain the median age for a population in a specific group of US Decennial census blocks. Here's an example of the problem: ## Example of calculating median age of population in census blocks. library(tidyverse) library(tidycensus) counts <- get_decennial(