Help using Base SAS procedures

How to add one more data(skewness) into simple proc mean data?

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

How to add one more data(skewness) into simple proc mean data?

This is my coding. I am very new to SAS and currently doing school project.

data response;

input Subject $ Political_party $ Sex $ Age $

Donation Q1  Q2 Q3  Q4 @@ ;

datalines;

1  D M 47 400 4 3 6 2

2  R M 36 800 4 6 6 6

3  I F 52 200 1 3 7 2

4  R M 47 300 3 2 5 3

5  D F 42 300 4 4 5 6

6  R F 44 1200 2 2 5 5

7  D M 44 200 6 2 3 6

8  D M 50 400 4 3 6 2

09 D F 33 500  3 4 7 1

10 R M 49 700  7 2 6 7

11 D F 59 600  4 2 5 6

12 D M 38 300  4 1 2 6

13 I M 55 100  5 5 6 5

14 I F 52 200  5 2 6 5

15 D F 48 100  6 3 4 6

16 R F 47 1500 2 1 6 2

17 D M 49 500  4 1 6 2

18 D F 43 1000 5 2 7 3

19 D F 44 300  4 3 5 7

run;

proc means data=response maxdec=3;

var Donation;

class Political_party  ;

types () Political_party;

title 'Prediction of donation size based on political party';

run;


i plan on doing one more analysis which is the skewness of the political party, how to modify the coding?


Accepted Solutions
Solution
‎08-17-2015 10:48 AM
Super User
Posts: 17,826

Re: How to add one more data(skewness) into simple proc mean data?

You can list the statistics in the PROC MEANS statement. THe list of available statistics can be found her:

Base SAS(R) 9.2 Procedures Guide

proc means data=response maxdec=3 N MIN MAX MEDIAN MEAN SKEW;

var Donation;

class Political_party  ;

types () Political_party;

title 'Prediction of donation size based on political party';

run;

View solution in original post


All Replies
Solution
‎08-17-2015 10:48 AM
Super User
Posts: 17,826

Re: How to add one more data(skewness) into simple proc mean data?

You can list the statistics in the PROC MEANS statement. THe list of available statistics can be found her:

Base SAS(R) 9.2 Procedures Guide

proc means data=response maxdec=3 N MIN MAX MEDIAN MEAN SKEW;

var Donation;

class Political_party  ;

types () Political_party;

title 'Prediction of donation size based on political party';

run;

☑ This topic is SOLVED.

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

Discussion stats
  • 1 reply
  • 225 views
  • 0 likes
  • 2 in conversation