DATA Step, Macro, Functions and more

percentage shares of a character variables value

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 10
Accepted Solution

percentage shares of a character variables value

Hi SAS-users,

is there a possibility to calculate the share of certain values of character variable within the whole value set, without counting the number of observations. I tried it with the procedure frequ and means, but it always resulted in complete number of observations instead of percentage shares.

For instance I want the percentage share of the variable drgh having the value 'K44Z' in relation to my complete number of observations.

Best,

Dennis


Accepted Solutions
Solution
‎03-25-2013 02:10 PM
Occasional Contributor
Posts: 10

Re: percentage shares of a character variables value

Sorry, I was too blind too detect the percentage shares on my output file. Guess I need a break from SAS.

View solution in original post


All Replies
Solution
‎03-25-2013 02:10 PM
Occasional Contributor
Posts: 10

Re: percentage shares of a character variables value

Sorry, I was too blind too detect the percentage shares on my output file. Guess I need a break from SAS.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 163 views
  • 0 likes
  • 1 in conversation