SAS

Blogs on the SAS software

Evaluate a function by using the function name in SAS/IML

November 1, 2017
By
Evaluate a function by using the function name in SAS/IML

A SAS/IML programmer asked whether you can pass the name of a function as an argument to a SAS/IML module and have the module call the function that is passed in. The answer is "yes." The basic idea is to create a string that represents the function call and then [...] The post Evaluate a function by using the function name in SAS/IML appeared first on The DO Loop.

Read more »

A SAS programming technique to modify ODS templates

October 30, 2017
By
A SAS programming technique to modify ODS templates

This article demonstrates a SAS programming technique that I call Kuhfeld's template modification technique. The technique enables you to dynamically modify an ODS template and immediately call the modified template to produce a new graph or table. By following the five steps in this article, you can implement the technique [...] The post A SAS programming technique to modify ODS templates appeared first on The DO Loop.

Read more »

Should you use principal component regression?

October 25, 2017
By
Should you use principal component regression?

This article describes the advantages and disadvantages of principal component regression (PCR). This article also presents alternative techniques to PCR. In a previous article, I showed how to compute a principal component regression in SAS. Recall that principal component regression is a technique for handling near collinearities among the regression [...] The post Should you use principal component regression? appeared first on The DO Loop.

Read more »

Principal component regression in SAS

October 23, 2017
By
Principal component regression in SAS

A common question on discussion forums is how to compute a principal component regression in SAS. One reason people give for wanting to run a principal component regression is that the explanatory variables in the model are highly correlated which each other, a condition known as multicollinearity. Although principal component [...] The post Principal component regression in SAS appeared first on The DO Loop.

Read more »

The diffogram and other graphs for multiple comparisons of means

October 18, 2017
By
The diffogram and other graphs for multiple comparisons of means

In a previous article, I discussed the lines plot for multiple comparisons of means. Another graph that is frequently used for multiple comparisons is the diffogram, which indicates whether the pairwise differences between means of groups are statistically significant. This article discusses how to interpret a diffogram. Two related plots [...] The post The diffogram and other graphs for multiple comparisons of means appeared first on The DO Loop.

Read more »

Graphs for multiple comparisons of means: The lines plot

October 16, 2017
By
Graphs for multiple comparisons of means: The lines plot

Last week Warren Kuhfeld wrote about a graph called the "lines plot" that is produced by SAS/STAT procedures in SAS 9.4M5. (Notice that the "lines plot" has an 's'; it is not a line plot!) The lines plot is produced as part of an analysis that performs multiple comparisons of [...] The post Graphs for multiple comparisons of means: The lines plot appeared first on The DO Loop.

Read more »

Simulate correlations by using the Wishart distribution

October 11, 2017
By
Simulate correlations by using the Wishart distribution

The article "Fisher's transformation of the correlation coefficient" featured a Monte Carlo simulation that generated sample correlations from bivariate normal data. The simulation used three steps: Simulate B samples of size N from a bivariate normal distribution with correlation ρ. Use PROC CORR to compute the sample correlation matrix for [...] The post Simulate correlations by using the Wishart distribution appeared first on The DO Loop.

Read more »

Order correlations by magnitude

October 9, 2017
By
Order correlations by magnitude

Correlations between variables are typically displayed in a matrix. Because the correlation matrix is determined by the order of the variables, it is difficult to find the largest and smallest correlations, which is why analysts sometimes use colors to visualize the correlation matrix. Another visualization option is the pairwise correlation [...] The post Order correlations by magnitude appeared first on The DO Loop.

Read more »

Create and interpret a weighted histogram

October 4, 2017
By
Create and interpret a weighted histogram

If you perform a weighted statistical analysis, it can be useful to produce a statistical graph that also incorporates the weights. This article shows how to construct and interpret a weighted histogram in SAS. How to construct a weighted histogram Before constructing a weighted histogram, let's review the construction of [...] The post Create and interpret a weighted histogram appeared first on The DO Loop.

Read more »

How to understand weight variables in statistical analyses

October 2, 2017
By
How to understand weight variables in statistical analyses

How can you specify weights for a statistical analysis? Hmmm, that's a "weighty" question! Many people on discussion forums ask "What is a weight variable?" and "How do you choose a weight for each observation?" This article gives a brief overview of weight variables in statistics and includes examples of [...] The post How to understand weight variables in statistical analyses appeared first on The DO Loop.

Read more »


Subscribe

Email:

  Subscribe