Posts Tagged ‘ Statistical Programming ’

The path of zip codes

September 18, 2017
By

Toe bone connected to the foot bone, Foot bone connected to the leg bone, Leg bone connected to the knee bone,...              — American Spiritual, "Dem Bones" Last week I read an interesting article on Robert Kosara's data visualization blog. Kosara connected the geographic centers of the US zip codes in

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on The path of zip codes

Use a bar chart to visualize pairwise correlations

August 16, 2017
By

Visualizing the correlations between variables often provides insight into the relationships between variables. I've previously written about how to use a heat map to visualize a correlation matrix in SAS/IML, and Chris Hemedinger showed how to use Base SAS to visualize correlations between variables. Recently a SAS programmer asked how

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Use a bar chart to visualize pairwise correlations

Robust principal component analysis in SAS

August 9, 2017
By

Recently, I was asked whether SAS can perform a principal component analysis (PCA) that is robust to the presence of outliers in the data. A PCA requires a data matrix, an estimate for the center of the data, and an estimate for the variance/covariance of the variables. Classically, these estimates

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Robust principal component analysis in SAS

Test for the equality of two proportions in SAS

July 5, 2017
By

A SAS customer asked how to use SAS to conduct a Z test for the equality of two proportions. He was directed to the SAS Usage Note "Testing the equality of two or more proportions from independent samples." The note says to "specify the CHISQ option in the TABLES statement

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Test for the equality of two proportions in SAS

Video: Create and use lists and tables in SAS/IML

June 26, 2017
By

My presentation at SAS Global Forum 2017 was "More Than Matrices: SAS/IML Software Supports New Data Structures." The paper was published in the conference proceedings several months ago, but I recently recorded a short video that gives an overview of using the new data structures in SAS/IML 14.2: If your

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Video: Create and use lists and tables in SAS/IML

Two ways to compute maximum likelihood estimates in SAS

June 14, 2017
By

In a previous article, I showed two ways to define a log-likelihood function in SAS. This article shows two ways to compute maximum likelihood estimates (MLEs) in SAS: the nonlinear optimization subroutines in SAS/IML and the NLMIXED procedure in SAS/STAT. To illustrate these methods, I will use the same data

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Two ways to compute maximum likelihood estimates in SAS

Quadratic optimization in SAS

April 12, 2017
By

At SAS Global Forum last week, I saw a poster that used SAS/IML to optimized a quadratic objective function that arises in financial portfolio management (Xia, Eberhardt, and Kastin, 2017). The authors used the Newton-Raphson optimizer (NLPNRA routine) in SAS/IML to optimize a hypothetical portfolio of assets. The Newton-Raphson algorithm

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Quadratic optimization in SAS

A simple trick to construct symmetric intervals

April 10, 2017
By

Many intervals in statistics have the form p ± δ, where p is a point estimate and δ is the radius (or half-width) of the interval. (For example, many two-sided confidence intervals have this form, where δ is proportional to the standard error.) Many years ago I wrote an article

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on A simple trick to construct symmetric intervals

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.