How many of you routinely refer to SAS Documentation? Are there some heavy hitters you continuously turn to? When looking at the high traffic to documentation pages on the support.sas.com site in 2011, it's evident that some titles are definitely resonating with SAS users. As promised (in a recent post on the 9 Bestselling SAS
Uncategorized
![](https://blogs.sas.com/content/iml/files/2012/01/runningvar2.png)
In my recent article on simulating Buffon's needle experiment, I computed the "running mean" of a series of values by using a single call to the CUSUM function in the SAS/IML language. For example, the following SAS/IML statements define a RunningMean function, generate 1,000 random normal values, and compute the
Did you know that a selection of our most popular SAS training classes are offered in conjunction with SAS Global Forum at a 15% discount? If you’re planning to attend SAS Global Forum, arrive a few days early and take a class. These training classes could be the argument you
![](https://blogs.sas.com/content/sastraining/files/2012/01/Rutledge2.jpg)
Robert Rutledge's book Just Enough SAS is the source of this week's SAS tip. It would be easy to turn almost any page of Robert's book into a stand-alone tip. However, today my attention was drawn to two side-by-side pages. One features a PROC GCHART pie chart (and includes a DONUT statement) and the other
![](https://blogs.sas.com/content/statelocalgov/files/2017/01/Analytics-2.png)
Cities and counties are responsible for building and maintaining the infrastructure to support a broad range of services. Local governments must develop and implement multiyear capital projects plans that provide infrastructure for things such as jails, courts, public office buildings, streets, bridges, parks, athletic complexes and community centers, water treatment
![](https://blogs.sas.com/content/iml/files/2012/01/t_vecdiag-147x150.png)
Once again I rediscovered something that I once knew, but had forgotten. Fortunately, this blog is a good place to share little code snippets that I don't want to forget. I needed to compute the diagonal elements of a product of two matrices. In symbols, I have an nxp matrix,
![](https://blogs.sas.com/content/sastraining/files/2017/01/SASevents-2.png)
Here at SAS Publishing, we’ve started the new year off with a bang, particularly when it comes to conferences. We’re attending a number of new shows in addition to the usual lineup this year. Visit our booth, meet our authors, check out our new and forthcoming titles, and talk with
![](https://blogs.sas.com/content/iml/files/2012/01/t_allinto.png)
The SAS/IML READ statement has a few convenient features for reading data from SAS data sets. One is that you can read all variables into vectors of the same names by using the _ALL_ keyword. The following DATA steps create a data set called Mixed that contains three numeric and
![Data table with garbage punctuation in Names, various formats for phone numbers and height and weight data entered in mixed metric and imperial units.](https://blogs.sas.com/content/sastraining/files/2012/02/JediST_Droids_1a-150x130.png)
In the Star Wars movie, Obi-wan could just wave his hand, mutter a few words, and the stormtroopers would "move along". How the power of the Force makes ridding yourself of problematic characters so much easier! I recently was invited to become an alternate instructor for Ron Cody’s SAS Business
![](https://blogs.sas.com/content/iml/files/2012/01/overlaykde.png)
A recent question on a SAS Discussion Forum was "how can you overlay multiple kernel density estimates on a single plot?" There are three ways to do this, depending on your goals and objectives. Overlay different estimates of the same variable Sometimes you have a single variable and want to
![](https://blogs.sas.com/content/iml/files/2012/12/listwisecorr-150x117.png)
It is "well known" that the pairwise deletion of missing values and the resulting computation of correlations can lead to problems in statistical computing. I have previously written about this phenomenon in my article "When is a correlation matrix not a correlation matrix." Specifically, consider the symmetric array whose elements
![](https://blogs.sas.com/content/statelocalgov/files/2017/01/StudentsEducators-1.png)
A’s in the front, Z’s in the back. How many of us grew up sitting in alphabetical order next to the same few classmates throughout school? While this is a quick and efficient way to learn student names, which is no easy task, it is not the most effective way
You know the old joke about the guy who jumps into a taxi and asks the driver, “Do you know how to get to Carnegie Hall?” and the driver replies, “Practice, practice, practice”. Well SAS OnDemand may not be your ticket to Carnegie Hall but it’s a great practice environment
![](https://blogs.sas.com/content/sasdummy/files/2012/01/sasnews.png)
Before there was CNN or FOX News, people used to get their news from SAS. At least, that's how I imagine that people kept themselves informed. What else can explain the existence of the NEWS= system option, which helps SAS admins to surface the must-know information to the SAS community?
![](https://blogs.sas.com/content/iml/files/2012/01/buffon2.png)
In my article on Buffon's needle experiment, I showed a graph that converges fairly nicely and regularly to the value π, which is the value that the simulation is trying to estimate. This graph is, indeed, a typical graph, as you can verify by running the simulation yourself. However, notice
As we wrapped up 2011 and began preparing for 2012, we were notified by the Society for Technical Communication, Carolina Chapter, that three SAS Press books received awards in the 2011-2012 competition. We submitted these three entries this past November, and are thrilled that all three submissions won awards. Multiple
![](https://blogs.sas.com/content/sastraining/files/2017/02/ProgrammingTips-3.png)
Dear Miss SAS Answers, In PROC REPORT can I use one calculated (computed) variable in the calculation of another computed variable? In the example below, I’m trying to use the value of the Bonus column to calculate the Total column: compute Bonus; Bonus =sal.sum*0.05; endcomp; compute Total; total=sum(sal.sum, Bonus.sum); endcomp;
![](https://blogs.sas.com/content/forecasting/files/2017/02/BFD.png)
Have you taken the Myers-Briggs Type Indicator (MBTI) assessment? It is a psychological test wherefrom you are classified on Extraversion vs. Introversion, Sensing vs. Intuition, Thinking vs. Feeling, and Judging vs. Perceiving. I, along with roughly 15% of the population, come out an ISTJ or "Guardian Inspector" (the single largest
![](https://blogs.sas.com/content/statelocalgov/files/2017/01/Analytics-1.png)
During one week in December, two separate transportation agencies within the federal government made two major announcements. First, the National Highway Traffic Safety Administration (NHTSA) – the government agency responsible for guiding traffic safety initiatives on the nation’s highways announced that crash fatalities had declined to record low rates. Just
A recent post on the SAS website shows the SAS Annual Revenue History. It would be interesting to see how we could create such a graph using SG procedures, and how we could add more information and interest in the presentation. So, I started with the basic informaiton on the annual revenues provided,
![](https://blogs.sas.com/content/iml/files/2012/01/t_negindex-22x150.png)
In the R programming language, you can use a negative index in order to exclude an element from a list or a row from a matrix. For example, the syntax x[-1] means "all elements of x except for the first." In general, if v is a vector of indices to
2011 was a year when we immersed ourselves in the process of converting existing titles to eBook format. You can now read most of your favorite SAS books on your Kindle or iPad or access them for any device through the Google eBookstore. We are currently in the process of converting
Following up on the theme of graphs commonly used in many applications, here is another one that displays a horizontal bar chart with multiple data columns aligned with the bars. Recently at WUSS, a user stopped by asking how to create just such a graph. While this user wanted something more complex
![](https://blogs.sas.com/content/sastraining/files/2012/01/Hollandwintercover.jpg)
Early in the new year, many of us make decisions designed to make our lives simpler, more meaningful, and less costly. So selecting 2012's first weekly tip was actually quite easy. Phil Holland's revered guide Saving Time and Money Using SAS is a natural fit. I've featured a few excerpts from Phil's work in the past
![](https://blogs.sas.com/content/iml/files/2012/01/t_buffon.png)
Buffon's needle experiment for estimating π is a classical example of using an experiment (or a simulation) to estimate a probability. This example is presented in many books on statistical simulation and is famous enough that Brian Ripley in his book Stochastic Simulation states that the problem is "well known
![](https://blogs.sas.com/content/sasdummy/files/2017/02/ProgrammingTips-3.png)
In the immortal words of Britney Spears: Oops! I did it again. At least, I'm afraid that I did. I think I might have helped a SAS student with a homework assignment, or perhaps provided an answer in preparation for a SAS certification exam. Or maybe it was a legitimate
![](https://blogs.sas.com/content/sastraining/files/2012/01/Advanceprepguide.gif)
SAS Publishing is pleased to announce that both the Base and the Advanced SAS Certification Prep Guides are now available as eBooks in the Apple iBookstore. In these guides, you’ll find affordable self-study materials to help you prepare for the SAS® 9 exams. Prepare yourself to achieve certification using your favorite
![](https://blogs.sas.com/content/statelocalgov/files/2017/01/Analytics-1.png)
Local governments are not immune to the rising demand for more accountability in government run services and programs, and the expenditure of public funds. Elected officials and citizens alike want to know what these programs accomplish for the public investment made. To date, the response to these questions and demands has been
Let us ring in the new year with something simple and useful. A recent question by a user over the holidays motivated this article on what is likely a commonly used graph. We want to compare the preformance of two categories along with a third measure. This could be something like "How
![](https://blogs.sas.com/content/iml/files/2017/01/AdvancedAnalytics-1.png)
Hello, 2012! It's a New Year and I'm flushed with ideas for new blog articles. (You can also read about The DO Loop's most popular posts of 2011.) The fundamental purpose of my blog is to present tips and techniques for writing efficient statistical programs in SAS. I pledge to