1. calculating % difference

Hi all,
I need your help in solving this problem, my data looks like this
I.D Var1
1 AA
2 AA
3 AA
4 AA
5 AG
6 AA
7 AA
8 AA
I want to catch Var with Different letter and i want to express it percentage difference i.e i got one AG and i want to express its percentage out of 8 observations. May be this is simple task but i am new to SAS can any help me with this.
Thanks

2. Re: calculating % difference

You could just run:

Code:
``````
Proc freq data= ?;
table var1;
run;``````
Let us know if you were looking for something else.

3. Re: calculating % difference

Thank you very much for your reply, I have eight observations in that only one is different and i want to calculate % difference means like 1 out of 8 like this and i want to apply this to all my 44 vars.
Thanks

4. Re: calculating % difference

So you want to calculate the proportions like I referenced but for 44 variables, then calculate the mean of the proportions, correct?

5. Re: calculating % difference

yes i want to do it

 Tweet

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts