Proc freq output dataset with cumulative percentage?

Reply
Contributor
Posts: 60

Proc freq output dataset with cumulative percentage?

Hi,

I`m trying to create a output dataset using proc freq. When i create the output dataset it has percentage but not the cumulative percentage.

How can i create an output dataset with cumulative percentage using proc freq.

Your help is much appreciated. Thanks.

Saravanan

Respected Advisor
Posts: 3,124

Re: Proc freq output dataset with cumulative percentage?

Something like this:

proc freq data=sashelp.class;

       tables age / out=want outcum;

    run;

    proc print;run;

Haikuo

Contributor
Posts: 60

Re: Proc freq output dataset with cumulative percentage?

Thank you very much. That worked like a charm!

Saravanan

Ask a Question
Discussion stats
  • 2 replies
  • 223 views
  • 0 likes
  • 2 in conversation