Posts Tagged ‘ data analysis ’

The difference between CLASS statements and BY statements in SAS

February 14, 2018
By
The difference between CLASS statements and BY statements in SAS

When I first learned to program in SAS, I remember being confused about the difference between CLASS statements and BY statements. A novice SAS programmer recently asked when to use one instead of the other, so this article explains the difference between the CLASS statement and BY variables in SAS

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on The difference between CLASS statements and BY statements in SAS

10 posts from 2017 that deserve a second look

January 10, 2018
By
10 posts from 2017 that deserve a second look

Last week I wrote about the 10 most popular articles from The DO Loop in 2017. My most popular articles tend to be about elementary statistics or SAS programming tips. Less popular are the articles about advanced statistical and programming techniques. However, these technical articles fill an important niche. Not

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on 10 posts from 2017 that deserve a second look

Label multiple regression lines in SAS

January 8, 2018
By
Label multiple regression lines in SAS

A SAS programmer asked how to label multiple regression lines that are overlaid on a single scatter plot. Specifically, he asked to label the curves that are produced by using the REG statement with the GROUP= option in PROC SGPLOT. He wanted the labels to be the slope and intercept

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Label multiple regression lines in SAS

The top 10 posts from The DO Loop in 2017

January 3, 2018
By
The top 10 posts from The DO Loop in 2017

I wrote more than 100 posts for The DO Loop blog in 2017. The most popular articles were about SAS programming tips, statistical data analysis, and simulation and bootstrap methods. Here are the most popular articles from 2017 in each category. General SAS programming techniques INTCK and INTNX: Do you

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on The top 10 posts from The DO Loop in 2017

How to create a sliced fit plot in SAS

December 20, 2017
By
How to create a sliced fit plot in SAS

I previously showed an easy way to visualize a regression model that has several continuous explanatory variables: use the SLICEFIT option in the EFFECTPLOT statement in SAS to create a sliced fit plot. The EFFECTPLOT statement is directly supported by the syntax of the GENMOD, LOGISTIC, and ORTHOREG procedures in

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on How to create a sliced fit plot in SAS

Visualize multivariate regression models by slicing continuous variables

December 18, 2017
By
Visualize multivariate regression models by slicing continuous variables

Slice, slice, baby! You've got to slice, slice, baby! When you fit a regression model that has multiple explanatory variables, it is a challenge to effectively visualize the predicted values. This article describes how to visualize the regression model by slicing the explanatory variables. In SAS, you can use the

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Visualize multivariate regression models by slicing continuous variables

3 problems with mean imputation

December 6, 2017
By
3 problems with mean imputation

In a previous article, I showed how to use SAS to perform mean imputation. However, there are three problems with using mean-imputed variables in statistical analyses: Mean imputation reduces the variance of the imputed variables. Mean imputation shrinks standard errors, which invalidates most hypothesis tests and the calculation of confidence

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on 3 problems with mean imputation

Visualize patterns of missing values

November 29, 2017
By
Visualize patterns of missing values

Missing values present challenges for the statistical analyst and data scientist. Many modeling techniques (such as regression) exclude observations that contain missing values, which can reduce the sample size and reduce the power of a statistical analysis. Before you try to deal with missing values in an analysis (for example,

The post Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Visualize patterns of missing values

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.