Corey Sparks
banner
coreysparks1.bsky.social
Corey Sparks
@coreysparks1.bsky.social

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

Economics 22%
Public Health 22%

Reposted by Corey Sparks

Coming tomorrow. It’s almost that time of year…
✍️ 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
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...
doi.org

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...

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.

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

The purpose is to show the r for the inline expression

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

that does it!

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")

🤢

even better!

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

yup, I get

that prints 5.5 in the report

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

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)

NOT just be
5.5

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)`

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

Reposted by Corey Sparks

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

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/...
Applied Demographic Data Analysis - 4  Macrodemographic Analysis of Places
coreysparks.github.io

Reposted by Corey Sparks

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
Doing Bayesian Data Analysis in brms and the tidyverse
bookdown.org

Reposted by Corey Sparks

Taking your analyses to the necks level tomorrow…

The whatever is the fun part

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
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…
www.linkedin.com
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...

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

Reposted by Corey Sparks

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.

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