All Posts

Missing values are a fact of life. Many statistical analyses, such as regression, exclude observations that contain missing values prior to forming matrix equations that are used in the analysis. This post shows how to find rows of a data matrix that contain missing values and how to remove those

Have you ever visited a city for the first time and, instead of relying maps to plan your journey, you simply plug your destinations into a GPS device and mindlessly follow the navigation directions? You've just cheated yourself out of a learning opportunity, because planning the journey and using your

Peter Flom reminded readers of his blog that you should always end a SAS procedure with a RUN statement. This is good rule. However, PROC IML is an exception to the rule. In PROC IML, the RUN statement is used to execute a built-in subroutine or a user-defined module. You

The shortfall in 2010 state and local government budgets is not news. But it remains the biggest issue facing state and local governments today – and will continue well into tomorrow. Existing gaps are projected to widen further in 2011, throwing departments and agencies already on the edge further into

No matter how much we want it, and no matter how hard we try, we can’t always achieve the forecast accuracy desired. Forecasting Heads or Tails in the toss of a fair coin gives the perfect illustration (being right 50% of the time is all we can achieve over a

A frequently performed task in data analysis is identifying all the observations in a data set that satisfy certain conditions. For example, you might want to identify all of the female patients in your study or to identify all patients whose systolic blood pressure is greater than 140 mm Hg.

"How do I apply a format to a vector of values in IML? In the DATA step, I can just call the PUTN function.” This question came from a SAS customer that I met recently at a conference. My reply? Use the PUTN function, but send it a vector of

Unemployment Insurance, mandated by federal statute and administered by states, is designed to provide a temporary safety net for workers who lose their jobs. Due to the recent economic downtown and increase in unemployment, unemployment benefits paid have doubled nationally from $38B in 2008 to $75B in 2009. However, is

The R You Ready blog posed an interesting problem. Essentially, you have a vector that contains n(n+1)/2 elements, and you want to pack those elements into the upper left triangular portion of a matrix. For example, if your data are proc iml; /** vector v is given: ncol(v) = n(n+1)/2 for

When Marilyn Manson sang of “The Beautiful People,” I think it was about how symmetry of facial features makes a person more visually attractive. At least that was the message I got out of the song. But unfortunately, even facial symmetry cannot compensate for an insufferable personality, as both Marilyn

When programmers begin learning a new computer language, the first program they write is often one that prints the text “Hello, World!” Successfully writing a Hello World program assures the programmer that the software is successfully installed and that all necessary features are working: parsers, compilers, linkers, and so on.

The secret to long life is good genes, right? This publication titled "Joint influence of small-effect genetic variants on human longevity" showed up on my Google alerts, and from what I can read (all of it) and understand (very little of it), that assertion is true. The researchers used PROC

Shane and others have already discovered this. The new version of SAS Enterprise Guide is now available. The latest version offers tremendous enhancements for all users, especially SAS programmers. It includes a new SAS program editing environment that supports syntax suggestions and autocomplete, embedded syntax reference help, and a SAS

Did the North Carolina Department of Motor Vehicles regain its sanity? Or was this just another tease? As you recall from last year, my application for “THE BFD” personalized license plate was accepted – then rejected – even though that extra $30 fee could have eased at least some of

The long awaited winners of the second round of Race To The Top were announced yesterday. Race To The Top is about education reform to improve schools and is based on four assurances: 1) Raising standards and improving assessments. 2) Recruiting, retaining and supporting effective educators and ensure equitable distribution