Sampling Regression Lines

Last week we saw how to generate posterior samples using PROC MCMC for simple linear and logistic regression models. This week, I want to show how to sample regression lines from the data set returned by MCMC by plotting several sample regression linse on top of a scatter plot of the source data. ...

May 8, 2023 · 3 min · 549 words · D. Michael Senter

Simple Regression With PROC MCMC

In this post I’ll show how to fit simple linear and logistic regression models using the MCMC procedure in SAS. Note that the point of this post is to show how the mathematical model is translated into PROC MCMC syntax and not to discuss the method itself. I will include links to relevant sections in Johnson, Ott, and Dogucu (2022) if you’d like to read more about Bayesian modeling. ...

May 2, 2023 · 5 min · 1010 words · D. Michael Senter

Loading Several XPT Files From a URL

The SAS Transport File Format (XPORT) is an open file format maintained by SAS for exchanging datasets. Its use is mandated by the FDA for data set submission for new drug or device applications and the CDC uses this format to distribute public data. For details regrading this format, see this Library of Congress page. This post will explore how to read several of these files into a SAS session with the URL filename statement using the National Health and Nutrition Examination Survey, or NHANES, as an example. ...

Apr 24, 2023 · 4 min · 669 words · D. Michael Senter

Are the Rich Paying Their Fair Share?

Today is tax day in the US. In celebration we’re going to take a look at some of the data available on the IRS Statistics page.

Apr 18, 2023 · 7 min · 1402 words · D. Michael Senter
Book Cover

Takeaways from 'Deep Work'

I have recently read Cal Newport’s book “Deep Work” (2016). Overall, it is a short but engaging read discussing his tips for how to spend more time doing intellectually focused and engaging work in a society whose attention and focus is ever more divided. Below are my takeways from the book. ...

Apr 13, 2023 · 24 min · 4952 words · D. Michael Senter

Statistical Tests as Linear Models

Andrew Gelman’s statmodeling blog recently contained a link to an interesting document by Jonas Lindeløv. It tries to explain various statistical tests in terms of linear models.

Apr 5, 2023 · 1 min · 52 words · D. Michael Senter

Sharing SSH Keys With a Devcontainer

VS Code devcontainers are a great resource for creating reusable containers to share between developers on the same project. When properly setup, it automatically passes your SSH credentials to the container. When this is not set up, the git push/pull functionality in VS Code won’t work (you will still be able to make commits in the devcontainer and then push/pull from the CLI you launched Code with). ...

Apr 4, 2023 · 2 min · 216 words · D. Michael Senter

Takeaways - 'Big Data Is Dead'

I recently read a great blog post by Jordan Tigani about Big Data. While Jordan’s post focuses on enterprise needs, I believe it contains relevant insights to individual researchers as well. ...

Mar 22, 2023 · 3 min · 593 words · D. Michael Senter

PROC MI Added to SASPy

I’m excited to announce that the new SAPy v4.6.0 release includes a pull request of mine that adds PROC MI to the SAS/STAT procedures directly exposed in SASPy. This procedure allows you to analyze missing data patterns and create imputations for missing data. ...

Feb 6, 2023 · 3 min · 546 words · D. Michael Senter

Why I'm Not Worried About ChatGPT

ChatGPT has been all over my newsfeed lately, with a considerable amount of hype. In particular, many are wondering or even worrying whether the emergence of this technology will threaten jobs with moderate to high education requirments. See for example “How ChatGPT Will Destabilize White-Collar Work” (The Atlantic), where Annie Lowrey leads with “In the next five years, it is likely that AI will begin to reduce employment for college-educated workers.” I do not share these views. In fact, I am somewhat underwhelmed by the threat of ChatGPT for a number of reasons. Since this topic has come up a few times for me lately, I will write down my thoughts here so I can reference them more easily. ...

Jan 27, 2023 · 8 min · 1540 words · D. Michael Senter