Posts Tagged ‘ Statistical Programming ’

Compute nearest neighbors in SAS

September 14, 2016
By
Compute nearest neighbors in SAS

Finding nearest neighbors is an important step in many statistical computations such as local regression, clustering, and the analysis of spatial point patterns. Several SAS procedures find nearest neighbors as part of an analysis, including as PROC LOESS, PROC CLUSTER, PROC MODECLUS, and PROC SPP. This article shows how to

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on Compute nearest neighbors in SAS

How to visualize a kernel density estimate

July 27, 2016
By
How to visualize a kernel density estimate

A kernel density estimate (KDE) is a nonparametric estimate for the density of a data sample. A KDE can help an analyst determine how to model the data: Does the KDE look like a normal curve? Like a mixture of normals? Is there evidence of outliers in the data? In

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on How to visualize a kernel density estimate

Use the EFFECTPLOT statement to visualize regression models in SAS

June 22, 2016
By
Use the EFFECTPLOT statement to visualize regression models in SAS

Graphs enable you to visualize how the predicted values for a regression model depend on the model effects. You can gain an intuitive understanding of a model by using the EFFECTPLOT statement in SAS to create graphs like the one shown at the top of this article. Many SAS regression

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on Use the EFFECTPLOT statement to visualize regression models in SAS

How to fit a variety of logistic regression models in SAS

May 23, 2016
By

SAS software can fit many different kinds of regression models. In fact a common question on the SAS Support Communities is "how do I fit a <name> regression model in SAS?" And within that category, the most frequent questions involve how to fit various logistic regression models in SAS. There

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on How to fit a variety of logistic regression models in SAS

Rolling statistics in SAS/IML

February 3, 2016
By

Last week I showed how to use PROC EXPAND to compute moving averages and other rolling statistics in SAS. Unfortunately, PROC EXPAND is part of SAS/ETS software and not every SAS site has a license for SAS/ETS. For simple moving averages, you can write a DATA step program, as discussed

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on Rolling statistics in SAS/IML

Banking to 45 degrees: Aspect ratios for time series plots

January 20, 2016
By
Banking to 45 degrees: Aspect ratios for time series plots

In SAS, the aspect ratio of a graph is the physical height of the graph divided by the physical width. Recently I demonstrated how to set the aspect ratio of graphs in SAS by using the ASPECT= option in PROC SGPLOT or by using the OVERLAYEQUATED statement in the Graph

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Banking to 45 degrees: Aspect ratios for time series plots

Twelve posts from 2015 that deserve a second look

January 11, 2016
By

I began 2016 by compiling a list of popular articles from my blog in 2015. This "People's Choice" list contains many interesting articles, but some of my personal favorites did not make the list. Today I present the "Editor's Choice" list of articles that deserve a second look. I've grouped

The post Read more »

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

Extracting elements from a matrix: rows, columns, submatrices, and indices

November 25, 2015
By
Extracting elements from a matrix: rows, columns, submatrices, and indices

A matrix is a convenient way to store an array of numbers. However, often you need to extract certain elements from a matrix. The SAS/IML language aupports two ways to extract elements: by using subscripts or by using indices. Use subscripts when you are extracting a rectangular portion of a

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Extracting elements from a matrix: rows, columns, submatrices, and indices

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.