Tag: 9.3

Mahalanobis distances on a heat map

I just learned Mahalanobis distance from Rick’s blog post yesterday, and realized its significance in detecting outliers. One of SAS’s online documents shows how to use PCA method to find Mahalanobis distances. And in SAS 9.3, the popular&nbs…

Valentine’s Day

Happy Valentine’s Day!

data one;
do t = 1 to 3*constant(“pi”) by 0.05;
x = 16*sin(t)**3;
y = 13*cos(t) – 5*cos(2*t) – 2*cos(3*t) – cos(4*t);
output;
end;
run;

data two;
set one;
if _n_ = 70 then label = “Valentine’s …

Merry Christmas!

Just for fun.

data cars;
set sashelp.cars;
length label $10.;
keep invoice weight enginesize type label;
if _n_ = 1 then label = ‘Merry’;
if _n_ = 50 then label = ‘Christmas’;
run;

proc sgplot data = cars noautolegend;
bubble x = in…

Rick Wicklin’s 195th blog post

Today I ran a SAS routine to check the KPIs for a few websites I am interested in. I accidentally found the total number of posts on Rick Wicklin’s blog is going to approach 200 pretty soon. I followed his blog since its creation. It is an amazing n…

Rick Wicklin’s 195th blog post

Today I ran a SAS routine to check the KPIs for a few websites I am interested in. I accidentally found the total number of posts on Rick Wicklin’s blog is going to approach 200 pretty soon. I followed his blog since its creation. It is an amazing n…

Rick Wicklin’s 195th blog post

Today I ran a SAS routine to check the KPIs for a few websites I am interested in. I accidentally found the total number of posts on Rick Wicklin’s blog is going to approach 200 pretty soon. I followed his blog since its creation. It is an amazing n…

A test to count missing values for large data

This morning Rick introduced how to count the missing frequencies for all variables in a dataset, including character and numeric variables. He provided two solutions by either PROC FREQ or PROC IML. I have a petty macro based on PROC SQL’s nmiss() f…

A test to count missing values for large data

This morning Rick introduced how to count the missing frequencies for all variables in a dataset, including character and numeric variables. He provided two solutions by either PROC FREQ or PROC IML. I have a petty macro based on PROC SQL’s nmiss() f…