Corey Sparks's Avatar

Corey Sparks

@coreysparks1.bsky.social

Demographer, Research Scientist at The Coleridge Initiative, reformed #academic #rstats https://coreysparks.github.io/appdem_Book/

247 Followers  |  402 Following  |  25 Posts  |  Joined: 22.08.2023  |  2.07

Latest posts by coreysparks1.bsky.social on Bluesky

Preview
Fertility, birth, reproduction: Connecting formal demographic frameworks The conventional framework of fertility research conceptualizes childbirth from the mother’s perspective. From her perspective, birth is an uncertain and potentially recurring event. In contrast, t...

✍️ Just out: Annette Baudisch & I delve into the formal demography of fertility, birth, & reproduction timing. πŸ‘Ά We use methods from mortality research to summarize when in the parental life course children are born. πŸ“† 1/n
doi.org/10.1080/0032...
@sdu.dk @oxforddemsci.bsky.social @mpidr.bsky.social

07.10.2025 12:51 β€” πŸ‘ 44    πŸ” 12    πŸ’¬ 1    πŸ“Œ 2
Post image

For those of you interested in accessing U.S. Census Bureau data from data.census.gov during the government shutdown, the Census APIs are still working.

Here is an example of how to access the Census API using both #Rstats and #Python

coreysparks.quarto.pub/accessing-th...

03.10.2025 16:05 β€” πŸ‘ 10    πŸ” 8    πŸ’¬ 0    πŸ“Œ 0

I was just excited that somebody responded. after the heyday of Twitter a few years ago, where this type of thing happened every single day I was worried that the community wasn’t really around anymore.

06.09.2025 13:00 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

I typically enjoy a janky solution but this is for a project where I'm trying to teach new R users, so may not this time

06.09.2025 12:58 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

The purpose is to show the r for the inline expression

05.09.2025 22:54 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

ah, duh, i'd put it in a chunk, that works too!

05.09.2025 17:20 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

that does it!

05.09.2025 17:16 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

this puts the vector notation in front of the output, and adds an extra r in there

knitr::inline_expr('r mean(1:10)', "md")

05.09.2025 17:14 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

🀒

05.09.2025 17:08 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

even better!

05.09.2025 17:07 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

hideous, but beautiful too?
ytb @ivelasq3.bsky.social

05.09.2025 17:04 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

yup, I get

05.09.2025 16:50 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image Post image 05.09.2025 16:47 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

that prints 5.5 in the report

05.09.2025 16:46 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

That did it, thanks @ercbk.bsky.social
``{r} mean(1:10) ``
gave me

05.09.2025 16:44 β€” πŸ‘ 7    πŸ” 1    πŸ’¬ 1    πŸ“Œ 0

Close! if I use
`{{r}} r mean(1:10)`

I get this:
{r} r mean(1:10)

but what I want is

r mean(1:10)

05.09.2025 16:35 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

NOT just be
5.5

05.09.2025 16:26 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

ok, dumb #rstats question. I'm using #quarto and i want to print some inline R code in my HTML report, but I DON'T want it to actually run the code

I want it to be like this in the report:
`r mean(1:10)`

05.09.2025 16:26 β€” πŸ‘ 8    πŸ” 2    πŸ’¬ 9    πŸ“Œ 0

Question for the group.
If you are in a job and there is basically no way of moving upwards in your organization, what would you do?
#jobs #work

29.08.2025 15:21 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
A screenshot of the bonus lesson "Getting Started: A Quick Introduction to R" with the title, a short intro and the first part on "Executing R Code". Also shows the first code examples which members can execute inside their browser thanks to our sandboxes.

A screenshot of the bonus lesson "Getting Started: A Quick Introduction to R" with the title, a short intro and the first part on "Executing R Code". Also shows the first code examples which members can execute inside their browser thanks to our sandboxes.

New bonus lesson out now! πŸŽ‰

"A Quick Introduction to R" is for all course members that are new to #rstats or need a refresher πŸ§‘β€πŸ’»

βž• 7 exercises and lots of in-browser code examples

Part of our interactive workshop #ggplot2 [un]charted πŸ’™
Get access πŸ‘‰ www.ggplot2-uncharted.com

#dataviz #datascience

23.05.2025 15:08 β€” πŸ‘ 28    πŸ” 3    πŸ’¬ 1    πŸ“Œ 0
Doing Bayesian Data Analysis in brms and the tidyverse

The 1.2.0 version of my #brms + #tidyverse translation of Kruschke’s "Doing Bayesian data analysis" is up!

bookdown.org/content/3686/

1/3
#rstats

14.04.2025 15:01 β€” πŸ‘ 58    πŸ” 16    πŸ’¬ 2    πŸ“Œ 0
Video thumbnail

Taking your analyses to the necks level tomorrow…

31.03.2025 11:53 β€” πŸ‘ 20    πŸ” 5    πŸ’¬ 4    πŸ“Œ 2
Applied Demographic Data Analysis - 4Β  Macrodemographic Analysis of Places

I'm listening to this episode and would highly recommend it to those who've never thought about count variable models, BUT!! Where's the denominator?? I'm seriously jonesing for a discussion of offsets in these models, and yes it's because I'm a #demographer coreysparks.github.io/appdem_Book/...

15.04.2025 12:38 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

The whatever is the fun part

28.03.2025 22:01 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
Mac keyboard shortcuts - Apple Support By pressing certain key combinations, you can do things that normally need a mouse, trackpad, or other input device.

There are a lot of useful keyboard shortcuts

support.apple.com/en-us/102650

28.03.2025 20:53 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Preview
Corey Sparks, Ph.D. on LinkedIn: #resist #publicdata Without public data, Trump can say whatever he wants, his administration is effectively removing the ability for the public to have any factual basis to the…

Without public data, Trump can say whatever he wants, his administration is effectively removing the ability for the public to have any factual basis to the health and socioeconomic conditions of his great america. If you are a public data user, archive whatever you can. #resist #publicdata

31.01.2025 23:25 β€” πŸ‘ 4    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0

Hey #rstats and #quarto folks, I'm building a quarto dashboard and using a gt table to show a reactive dataframe. The problem is that when I select the filter, the table keeps getting large and larger, has anyone else seen this? TIA

05.12.2024 15:59 β€” πŸ‘ 1    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Post image

If fellow BlueSkyers were like me and used to love TweetDeck back in the day, I'd really recommend @deck.blue to bring back that column view and general vibe.

18.11.2024 12:26 β€” πŸ‘ 62    πŸ” 28    πŸ’¬ 0    πŸ“Œ 2
Video thumbnail

Are you a #student who is interested in #Demography and #DataScience & you have no plans for β˜€οΈβ˜€οΈβ˜€οΈ#summer 2025β˜€οΈβ˜€οΈβ˜€οΈβ˜€οΈ yet? Look no more! @mpidr.bsky.social has just the program for you: Population and Social Data Science Summer Incubator Program! Apply until Jan 8, 2025 demogr.mpg.de/go/Incubator...

14.11.2024 12:42 β€” πŸ‘ 55    πŸ” 38    πŸ’¬ 3    πŸ“Œ 5

Also curious about the large book of spells in the foreground....

16.11.2024 13:12 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

@coreysparks1 is following 20 prominent accounts