Todd Jones's Avatar

Todd Jones

@toddrjones.bsky.social

Economics professor, Mississippi State University, CESifo, IZA | Applied micro, econ of ed, data viz, coding tips | Latter-day Saint | Dad x 4. toddrjones.com

2,041 Followers  |  1,529 Following  |  129 Posts  |  Joined: 20.09.2023  |  1.7836

Latest posts by toddrjones.bsky.social on Bluesky

Post image

Quick @Stata tip: use the "coeflegend" option in a regression to display the name Stata uses for each coefficient.

reg price mpg i.foreign##i.rep78, coeflegend

05.08.2025 18:49 β€” πŸ‘ 20    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
Video thumbnail

The changing relationship between Democratic vote share and
1) the percentage of county with at least a Bachelor's degree
2) median income of county.

25.06.2025 18:54 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Preview
How Donald Trump Has Remade America’s Political Landscape The steady march to the right across a vast number of counties reveals the extent of the nation's transformation in the Trump era, and the seriousness of the Democrats' problems.

See also: www.nytimes.com/interactive/...

23.06.2025 21:28 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Video thumbnail

Over the past couple decades, Democratic support has grown in more college-educated and higher-income counties, a shift away from its traditional blue-collar strongholds. h/t β€ͺ@shanegoldmacher.bsky.social‬

23.06.2025 21:28 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0
Post image

The relationship between a county’s Democratic vote share (in the 2024 election) and its share of college-educated residents.

31.05.2025 19:50 β€” πŸ‘ 6    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Percent (age 25+) with a Ph.D.

On a personal note, I have lived in two of the top 25 (#3 Tompkins County, NY and now #22 Oktibbeha County, MS).

Top 5: 1. Los Alamos, NM (18%); 2. Lexington City, VA (12%); 3. Tompkins County, NY (12%); 4. Orange County, NC (9%); 5. Charlottesville city, VA (8%).

31.05.2025 03:31 β€” πŸ‘ 3    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0

Our baby boy is here! That makes four kids under six - wish us luck!

29.05.2025 18:41 β€” πŸ‘ 8    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Video thumbnail

Falling fertility.

19.05.2025 14:44 β€” πŸ‘ 3    πŸ” 2    πŸ’¬ 0    πŸ“Œ 0
Video thumbnail

Here are some ways the world has gotten better.

18.05.2025 20:55 β€” πŸ‘ 641    πŸ” 216    πŸ’¬ 17    πŸ“Œ 19
Post image

When in the day are babies born?

16.05.2025 16:28 β€” πŸ‘ 11    πŸ” 3    πŸ’¬ 0    πŸ“Œ 0
Video thumbnail

Number of births per day, 1994-2014.

15.05.2025 20:58 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Average number of US births by day of the year.

15.05.2025 20:03 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Average number of births by day of the week.

15.05.2025 02:52 β€” πŸ‘ 6    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Post image

That was unexpected - Elon Musk retweeted my graph.

11.05.2025 19:08 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

There were more Latter-day Saint convert baptisms last year than any year since 1997.

06.05.2025 03:56 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

What is your top book recommendation?

02.05.2025 01:16 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 3    πŸ“Œ 0

I've added 43 new tips to my book, bringing the total to 140.

You can download "Quick Stata Tips" and the accompanying .do file for free at toddrjones.com/quickstatati....

14.04.2025 13:49 β€” πŸ‘ 58    πŸ” 22    πŸ’¬ 7    πŸ“Œ 2

Good catch - thanks!

16.04.2025 21:02 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

I've added 43 new tips to my book, bringing the total to 140.

You can download "Quick Stata Tips" and the accompanying .do file for free at toddrjones.com/quickstatati....

14.04.2025 13:49 β€” πŸ‘ 58    πŸ” 22    πŸ’¬ 7    πŸ“Œ 2
Post image

Death rate per 100k by selected causes, ages 0-84.

26.03.2025 13:40 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0
Post image

Death rate per 100k by selected causes, ages 0-39.

26.03.2025 13:40 β€” πŸ‘ 4    πŸ” 0    πŸ’¬ 1    πŸ“Œ 1
Post image

Deaths and death rate/100,000, by age.

26.03.2025 03:14 β€” πŸ‘ 3    πŸ” 1    πŸ’¬ 0    πŸ“Œ 0
Post image

Leading Cause of Death by Age.

24.03.2025 22:50 β€” πŸ‘ 5    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Mississippi State Univ. is hiring a tenure-track Econ Assistant Prof w/ August start!

Open field; pref. for applied micro & teaching PhD Micro I & II (Micro II this fall).

Apply: MSU site & www.aeaweb.org/joe/listing.php?JOE_ID=2025-01_111475768

Please repostβ€”it's an off-cycle search. Thanks!

21.03.2025 13:59 β€” πŸ‘ 47    πŸ” 42    πŸ’¬ 0    πŸ“Œ 0

Looks good - thanks!

16.03.2025 19:48 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

Thanks.

15.03.2025 23:45 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

Of course, in this example, we didn't need to use ChatGPT. But imagine examples where the contents of the pages differ enough that it isn't feasible to use traditional webscraping tools. Or we need the LLM to process the data somehow.

Note also that ChatGPT can help write the R code.

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

To programmatically use ChatGPT in R to automate repeated tasks, e.g., scraping:

1. Get OpenAI API key & add $ to account
2. In R, for each page:
3. Get the page's text
4. Call ChatGPT to process the text, returning result in JSON
5. Convert JSON to dataframe

See screenshots for an example. (1/2)

12.03.2025 16:39 β€” πŸ‘ 4    πŸ” 3    πŸ’¬ 1    πŸ“Œ 0

Thank you, Sarah!

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

Thanks!

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

@toddrjones is following 20 prominent accounts