I recently stumbled upon the nlevels function in SAS. It is awesome in terms of processing speed, given that the alternative is PROC SQL, COUNT(DISTINCT) etc etc
Truly the fastest way to find uniqueness in vars is use the nlevels in PROC FREQ – and why do we need to find levels in character variables- well to check for binary variables (2 values), constants (just 1 level), and simple data analysis stuff.
See this extract from-
ods output nlevels=levels;
proc freq data=good.sas nlevels;
tables _char_ /noprint;
Heres a new contest for SAS users. The prizes are books, so students should be interested as well.
|New Points for Prizes Contest|
Win SAS books!
|Contribute content or SAS code to sasCommunity.org for your chance to WIN! To qualify, simply add or edit articles between April 11, 2011 and May 9, 2011 (GMT). Creation of a first-time profile on sasCommunity.org gives you 1,000 points. For each valid article creation or edit, 100 points will be earned. The user with the most points collected during this time wins SAS Press Books!
|Become a sasCommunity Guru|
|The sasCommunity support team has been hard at work adding new features and is pleased to announce a points system that recognizes each user’s contributions to the site. Every time you contribute by creating a page, updating it, or just doing a little wiki gardening, you earn points.Earning points is automatic and simple – all you have to do is contribute! Creating your account starts you with 1000 points and all the current users have been credited with points dating back to the site coming online in April 2007.
- Greenplum & SAS Pair on ‘Big Analytics’ (java.sys-con.com)
- Nordstrom and the SAS Institute (sarahlynnwheeler.wordpress.com)
- SAS programming (bravecricket.wordpress.com)
- The Popularity of Data Analysis Software (R vs SAS vs SPSS, etc.) (r-bloggers.com)