Date: Wed, 20 Dec 2006 04:29:56 -0500
Reply-To: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject: Re: Report in sas
the format is no problem. Use
data _null_;
file print;
put "text: " @pos var format.;
put /; /* to put a blank line between */
....
run;
But it's not clear, how you want to fit your data in. There are some
statistics, like mean, range, N, ... What is age? Youir class - variable?
That means, you want the average, range of what (?) by age-groups?
If you want to summarize your data by whatever, you should use
proc summary data=... nway;
class class-variable(s);
var weight pulse ....;
output out=x range(var(s))=range_var(s)
mean(var(s)) =mean_var(s)
;
run;
N you can get by _freq_
Regards,
Gerhard
On Tue, 19 Dec 2006 22:50:19 -0800, GAN <ganeshkumar.mohanan@GMAIL.COM> wrote:
>Hi Everybody
>
>I have a problem with report formation.
>
>
>data demo;
>input age sex pulse height weight;
>cards;
>45 m 34 175 65
>55 f 28 160 40
>.........
>etc
>
>
>I want to Report like this
>
>
>Age (in years)
>N -
>Mean +/ SD
>Range
>
>
>Pulse
>
>
>N -
>Mean +/ SD
>Range
>
>
>Thanks@regrads
>Ganeshkumar.M
|