I'm working with Proc Freq, but this question can extend beyond that.
How best to subset the data for the analysis one wants to do?
For instance, say there is a column of data called "Quality", and it extends from 0 to 10. And I would like to only focus on the rows of data with Quality >= 8.0.
So in Proc Freq, ONLY focus on that subset of data.
How best to do this?
Thanks,
Nicholas Kormanik
@Kurt_Bremser wrote:
Use a WHERE Statement or a WHERE= Data Set Option.
In PROC Steps
You can use the WHERE statement with any SAS procedure that reads a SAS data set. The WHERE statement is useful in order to subset the original data set for processing by the procedure.
Odd no example was provided with a Proc. Only Data.
Would indeed be useful to easily run Proc Freq on various sub-parts of a data set.
Thanks @Kurt_Bremser
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.