SAS

Blogs on the SAS software

Halley’s method for finding roots

August 24, 2016
By
Halley’s method for finding roots

Edmond Halley (1656-1742) is best known for computing the orbit and predicting the return of the short-period comet that bears his name. However, like many scientists of his era, he was involved in a variety of mathematical and scientific activities. One of his mathematical contributions is a numerical method for […] The post Halley's method for finding roots appeared first on The DO Loop.

Read more »

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 »

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 »

Install Theano under Anaconda3 Python 3.5

August 11, 2016
By
Install Theano under Anaconda3 Python 3.5

As of writing, Deep Learning package Theano can't be installed under Python 3.5, which causes some problems with my project. ruslanagit provided a viable solution that works for me under Windows 10.For convenience, I copied his solution below:Well, the...

Read more »

Add Table of Contents to your Jupyter Notebook

August 10, 2016
By
Add Table of Contents to your Jupyter Notebook

Jupyter notebook does not support Table Of Contents (ToC) out of box, unlike R Markdown. There are nbextensions that ppl made to support this. It is easy to add this capability, following these steps to add Table of Contents to your notebook: 1. F...

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 »


Subscribe

Email:

  Subscribe