Hello,
I have the following proc freq:
|
|
Is it possible to output the "Complete" frequency (127) and percent (63.50) and into a data set? Thank you
It usually helps to show the code you are using so we can post code suggestions.
Proc freq will create output data sets several ways. One is to add an OUT=datasetname option to the tables statement. would require an OUTPCT option to get the percents. The OUT= option only will have result for a single table request. If you creating multiple tables then you either split the Tables statements or use ODS OUTPUT to capture results. You can use ODS OUTPUT CROSSTABFREQS=datasetname; as a statement in the Proc freq code to capture two-way tables.
This would have all the counts and percents, more less, and if you only want a specific value then you use the typical options to subset a data set.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.