Posts Tagged ‘ Tips and Techniques ’

Mean imputation in SAS

December 4, 2017
By
Mean imputation in SAS

Imputing missing data is the act of replacing missing data by nonmissing values. Mean imputation replaces missing data in a numerical variable by the mean value of the nonmissing values. This article shows how to perform mean imputation in SAS. It also presents three statistical drawbacks of mean imputation. How [...] The post Mean imputation in SAS 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 »

Data-driven simulation

September 27, 2017
By
Data-driven simulation

In a large simulation study, it can be convenient to have a "control file" that contains the parameters for the study. My recent article about how to simulate multivariate normal clusters demonstrates a simple example of this technique. The simulation in that article uses an input data set that contains [...] The post Data-driven simulation appeared first on The DO Loop.

Read more »

6 tips for timing the performance of algorithms

August 21, 2017
By
6 tips for timing the performance of algorithms

When you implement a statistical algorithm in a vector-matrix language such as SAS/IML, R, or MATLAB, you should measure the performance of your implementation, which means that you should time how long a program takes to analyze data of varying sizes and characteristics. There are some general tips that can [...] The post 6 tips for timing the performance of algorithms appeared first on The DO Loop.

Read more »

Five reasons to check out the new SAS analytical documentation

January 23, 2017
By
Five reasons to check out the new SAS analytical documentation

The SAS analytical documentation has a new look. Beginning with the 14.2 release of the SAS analytical products (which shipped with SAS 9.4m4 in November 2016), the HTML version of the online documentation has moved to a new framework called the Help Center. The URL for the online documentation is [...] The post Five reasons to check out the new SAS analytical documentation appeared first on The DO Loop.

Read more »

PUT it there! Six tips for using PUT and %PUT statements in SAS

January 16, 2017
By
PUT it there! Six tips for using PUT and %PUT statements in SAS

For SAS programmers, the PUT statement in the DATA step and the %PUT macro statement are useful statements that enable you to display the values of variables and macro variables, respectively. By default, the output appears in the SAS log. This article shares a few tips that help you to [...] The post PUT it there! Six tips for using PUT and %PUT statements in SAS appeared first on The…

Read more »

Append data to add markers to SAS graphs

November 30, 2016
By
Append data to add markers to SAS graphs

Do you want to create customized SAS graphs by using PROC SGPLOT and the other ODS graphics procedures? An essential skill that you need to learn is how to merge, join, append, and concatenate SAS data sets that come from different sources. The SAS statistical graphics procedures (SG procedures) enable […] The post Append data to add markers to SAS graphs appeared first on The DO Loop.

Read more »

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 Counting observations for which two events occur appeared first on The DO Loop.

Read more »

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 Use the EFFECTPLOT statement to visualize regression models in SAS appeared first on The DO Loop.

Read more »

How to write CONTRAST and ESTIMATE statements in SAS regression procedures

June 6, 2016
By
How to write CONTRAST and ESTIMATE statements in SAS regression procedures

I got several positive comments about a recent tip, "How to fit a variety of logistic regression models in SAS." A reader asked if I knew any other similar resources about statistical analysis in SAS. Absolutely! One gem that comes to mind is "Examples of writing CONTRAST and ESTIMATE statements." […] The post How to write CONTRAST and ESTIMATE statements in SAS regression procedures appeared first on The DO Loop.

Read more »


Subscribe

Email:

  Subscribe