Posts Tagged ‘ Uncategorized ’

Create an animation with the BY statement in PROC SGPLOT

August 22, 2016
By
Create an animation with the BY statement in PROC SGPLOT

It is easy to use PROC SGPLOT and BY-group processing to create an animated graph in SAS 9.4. Sanjay Matange previously discussed how to create an animated plot in SAS 9.4, but he used a macro loop to call PROC SGPLOT many times. It is often easier to use the […] The post Create an animation with the BY statement in PROC SGPLOT appeared first on The DO Loop.

Read more »

The smooth bootstrap method in SAS

August 17, 2016
By
The smooth bootstrap method in SAS

Last week I showed how to use the simple bootstrap to randomly resample from the data to create B bootstrap samples, each containing N observations. The simple bootstrap is equivalent to sampling from the empirical cumulative distribution function (ECDF) of the data. An alternative bootstrap technique is called the smooth […] The post The smooth bootstrap method in SAS appeared first on The DO Loop.

Read more »

Probably the most useful R function I’ve ever written

August 15, 2016
By

The function in question is scriptSearch. I’m not much for superlatives — “most” and “best” imply one dimension, but we live in a multi-dimensional world. I’m making an exception. The statistic I have in mind for this use of “useful” is the waiting time between calls to the function divided by the human time saved […] The post Probably the most useful R function I’ve ever written appeared first on…

Read more »

Formats for p-values and odds ratios in SAS

August 15, 2016
By
Formats for p-values and odds ratios in SAS

Last week I showed some features of SAS formats, including the fact that you can use formats to bin a continuous variable without creating a new variable in the DATA step. During the discussion I mentioned that it can be confusing to look at the output of a formatted variable […] The post Formats for p-values and odds ratios in SAS appeared first on The DO Loop.

Read more »

Compute a bootstrap confidence interval in SAS

August 10, 2016
By
Compute a bootstrap confidence interval in SAS

A common question is "how do I compute a bootstrap confidence interval in SAS?" As a reminder, the bootstrap method consists of the following steps: Compute the statistic of interest for the original data Resample B times from the data to form B bootstrap samples. How you resample depends on […] The post Compute a bootstrap confidence interval in SAS appeared first on The DO Loop.

Read more »

Use SAS formats to bin numerical variables

August 8, 2016
By
Use SAS formats to bin numerical variables

SAS formats are flexible, dynamic, and have many uses. For example, you can use formats to count missing values and to change the order of a categorical variable in a table or plot. Did you know that you can also use SAS formats to recode a variable or to bin […] The post Use SAS formats to bin numerical variables appeared first on The DO Loop.

Read more »

Video: Writing packages: A new way to distribute and use SAS/IML programs

August 3, 2016
By
Video: Writing packages: A new way to distribute and use SAS/IML programs

My presentation at SAS Global Forum 2016 was titled "Writing Packages: A New Way to Distribute and Use SAS/IML Programs." The paper was published in the conference proceedings several months ago, but I recently recorded a short video that gives an overview of using and creating packages in SAS/IML 14.1: […] The post Video: Writing packages: A new way to distribute and use SAS/IML programs appeared first on The DO…

Read more »

Compute highest density regions in SAS

August 1, 2016
By
Compute highest density regions in SAS

In a scatter plot, the regions where observations are packed tightly are areas of high density. A contour plot or heat map of a bivariate kernel density estimate (KDE) is one way to visualize regions of high density. A SAS customer asked whether it is possible to use SAS to […] The post Compute highest density regions in SAS appeared first on The DO Loop.

Read more »

Female world leaders by year of election

July 29, 2016
By
Female world leaders by year of election

This week Hillary Clinton became the first woman to be nominated for president of the US by a major political party. Although this is a first for the US, many other countries have already passed this milestone. In fact, 60 countries have already elected women as presidents and prime ministers. […] The post Female world leaders by year of election appeared first on The DO Loop.

Read more »

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 How to visualize a kernel density estimate appeared first on The DO Loop.

Read more »


Subscribe

Email:

  Subscribe