Tracking Trump’s approval rating

October 31, 2018
By

President Donald Trump - people seem to either love him or hate him. Which makes for an interesting data-analysis topic ... tracking Trump's approval rating. Follow along as I explore some data! I'll start with what I consider the 'best' approval-rating graph I've found so far. Here's a screen-capture of

The post Read more »

A trick to plot groups in PROC SGPLOT

October 31, 2018
By
A trick to plot groups in PROC SGPLOT

A useful feature in PROC SGPLOT is the ability to easily visualize subgroups of data. Most statements in the SGPLOT procedure support a GROUP= option that enables you to overlay plots of subgroups. When you use the GROUP= option, observations are assigned attributes (colors, line patterns, symbols, ...) that indicate

The post Read more »

Bootstrap regression estimates: Residual resampling

October 29, 2018
By
Bootstrap regression estimates: Residual resampling

If you want to bootstrap the parameters in a statistical regression model, you have two primary choices. The first, case resampling, is discussed in a previous article. This article describes the second choice, which is resampling residuals (also called model-based resampling). This article shows how to implement residual resampling in

The post Read more »

What is the most common last name in each North Carolina county?

October 25, 2018
By

The other day I was playing around with the voter registration data for all ~8 million registered voters in North Carolina (yes - this guy knows how to have fun!), and I got to wondering what last names were the most common. I summarized the data by co...
Read more »

Bootstrap regression estimates: Case resampling

October 24, 2018
By
Bootstrap regression estimates: Case resampling

If you want to bootstrap the parameters in a statistical regression model, you have two primary choices. The first is case resampling, which is also called resampling observations or resampling pairs. In case resampling, you create the bootstrap sample by randomly selecting observations (with replacement) from the original data. The

The post Read more »

We broke some records at the 2018 NC State Fair!

October 23, 2018
By

This past Sunday was the last day of the NC State Fair, and we broke some records this year! Can you guess what those records were? I'll ramble on about the fair to give you time to come up with your guess, and then I'll let you know about the Th...
Read more »

Which state has the oldest US Legislators? – Pick your graph axes carefully!

October 22, 2018
By

Have you noticed a lot of graphs popping up lately, about politicians, voters, and elections? ... Well of course - it's an election year! If you follow my blog posts, then you're probably a bit "smarter than the average bear" when it comes to scrutiniz...
Read more »

Transpose blocks to reshape data

October 22, 2018
By
Transpose blocks to reshape data

A SAS programmer asked how to rearrange elements of a matrix. The rearrangement he wanted was rather complicated: certain blocks of data needed to move relative to other blocks, but the values within each block were to remain unchanged. It turned out that the mathematical operation he needed is called

The post Read more »

DNA and your family tree … 6-10 generations back

October 17, 2018
By

Any of you who are even slightly into politics, or have followed any news lately, have probably seen something about the DNA test Elizabeth Warren took to prove/disprove her Native American ancestry. The test indicates she might have had a Native Ameri...
Read more »

Welcome!

SAS-X.com offers news and tutorials about the various SAS® software packages, contributed by bloggers. You are welcome to subscribe to e-mail updates, or add your SAS-blog to the site.

Sponsors







Dear readers, proc-x is looking for sponsors who would be willing to support the site in exchange for banner ads in the right sidebar of the site. If you are interested, please e-mail me at: tal.galili@gmail.com
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.