# Bootstrap regression estimates: Residual resampling

October 29, 2018
By

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

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

# Bootstrap regression estimates: Case resampling

October 24, 2018
By

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

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

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

# Transpose blocks to reshape data

October 22, 2018
By

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

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

# Parameter estimates for different parameterizations

October 17, 2018
By

In a recent article about nonlinear least squares, I wrote, "you can often fit one model and use the ESTIMATE statement to estimate the parameters in a different parameterization." This article expands on that statement. It shows how to fit a model for one set of parameters and use the

# Get the unique values of a variable in data order

October 15, 2018
By

There are several ways to use SAS to get the unique values for a data variable. In Base SAS, you can use the TABLES statement in PROC FREQ to generate a table of unique values (and the counts). You can also use the DISTINCT function in PROC SQL to get

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