Posts Tagged ‘ Matrix Computations ’

Rotation matrices and 3-D data

November 7, 2016
By
Rotation matrices and 3-D data

Rotation matrices are used in computer graphics and in statistical analyses. A rotation matrix is especially easy to implement in a matrix language such as the SAS Interactive Matrix Language (SAS/IML). This article shows how to implement three-dimensional rotation matrices and use them to rotate a 3-D point cloud. Define

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Rotation matrices and 3-D data

Counting observations for which two events occur

October 31, 2016
By
Counting observations for which two events occur

Every year near Halloween I write an article in which I demonstrate a simple programming trick that is a real treat to use. This year's trick (which features the CMISS function and the crossproducts matrix in SAS/IML) enables you to count the number of observations that are missing for pairs

The post Read more »

Tags: , , ,
Posted in SAS | Comments Off on Counting observations for which two events occur

Visualize a weighted regression

October 5, 2016
By
Visualize a weighted regression

What is weighted regression? How does it differ from ordinary (unweighted) regression? This article describes how to compute and score weighted regression models. Visualize a weighted regression Technically, an "unweighted" regression should be called an "equally weighted " regression since each ordinary least squares (OLS) regression weights each observation equally.

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Visualize a weighted regression

Absorbing Markov chains in SAS

July 13, 2016
By
Absorbing Markov chains in SAS

Last week I showed how to represent a Markov transition matrix in the SAS/IML matrix language. I also showed how to use matrix multiplication to iterate a state vector, thereby producing a discrete-time forecast of the state of the Markov chain system. This article shows that the expected behavior of

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Absorbing Markov chains in SAS

Markov transition matrices in SAS/IML

July 7, 2016
By
Markov transition matrices in SAS/IML

Many computations in elementary probability assume that the probability of an event is independent of previous trials. For example, if you toss a coin twice, the probability of observing "heads" on the second toss does not depend on the result of the first toss. However, there are situations in which

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Markov transition matrices in SAS/IML

Grids and linear subspaces

May 31, 2016
By
Grids and linear subspaces

A grid is a set of evenly spaced points. You can use SAS to create a grid of points on an interval, in a rectangular region in the plane, or even in higher-dimensional regions like the parallelepiped shown at the left, which is generated by three vectors. You can use

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Grids and linear subspaces

Compute the square root matrix

May 25, 2016
By
Compute the square root matrix

Children in primary school learn that every positive number has a real square root. The number x is a square root of s, if x2 = s. Did you know that matrices can also have square roots? For certain matrices S, you can find another matrix X such that X*X

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Compute the square root matrix

Matrix computations at SAS Global Forum 2016

April 25, 2016
By
Matrix computations at SAS Global Forum 2016

Last week I attended SAS Global Forum 2016 in Las Vegas. I and more than 5,000 other attendees discussed and shared tips about data analysis and statistics. Naturally, I attended many presentations that featured using SAS/IML software to implement advanced analytical algorithms. Several speakers showed impressive mastery of SAS/IML programming

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Matrix computations at SAS Global Forum 2016

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.