proc report - calculating %'s across

  • Follow


I have this:

proc report data=full nowindows headskip;
	column schoolid a1 i15 wave;
	define schoolid/group "School";
	define a1/group "Gender";
	define i15 /group "Ever Pregnant";
	define wave/across "Wave"  ;
run;

Which gives me the frequencies of pregnancy (yes/no) across wave by
gender & school.
Now, how can I add a row that gives me the column percents? See below.
Sorry if the spacing is off.

			                                              Wave
School	Gender	Ever Pregnant	1	2	3	4	5
100	        Females	No	               160	199	135	161	156
		                Yes	               8	11	14	11	12
                               % Yes             5%     5%      9%
6%   7%


Thanks,
-Robin

0
Reply robin.a.jeffries (8) 5/4/2010 6:16:45 PM


0 Replies
235 Views

(page loaded in 0.023 seconds)

Similiar Articles:













7/24/2012 1:51:21 PM


Reply: