Date: Tue, 1 Dec 2009 10:53:42 -0500
Reply-To: joey m <sasuser.joey.m@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: joey m <sasuser.joey.m@GMAIL.COM>
Subject: Re: controlling decimal places from proc means
Content-Type: text/plain; charset=ISO-8859-1
I tried that but I think that does not have an effect on the means I
calculate using proc report.
I used the proc means portion to have a quick look of what I wanted to print
into a table, then proc report make the means and std calculations, too.
There I have problems controlling the decimals.
On Tue, Dec 1, 2009 at 10:36 AM, Arthur Tabachneck <firstname.lastname@example.org>wrote:
> Would the maxdec option suffice? E.g.,:
> proc means data=sashelp.class maxdec=2;
> var height;
> On Tue, 1 Dec 2009 10:05:18 -0500, joey m <sasuser.joey.m@GMAIL.COM>
> >Hello boys and girls:
> >Could you please tell me how to control the decimal places put in the
> >and std in my table?
> >I would like to put 2 (i.e. 358.12) and now I am getting something like
> >Thanks a lot and regards.
> >proc means data=file_in n mean std;
> > class batch treatment;
> > var result;
> >options pageno=1;
> >proc printto file="C:\means.txt";
> >proc report data=file_in nowindows headline ;
> > column week batch treatment result,(n mean std);
> > define day / group left id 'Week' width=10;
> > define batch / group left id 'Batch' width=10;
> > define treatment / group left id 'Treatment' width=16;
> > define result / analysis "My Variable (secs)" center;
> > compute after batch;
> > line ' ';
> > endcomp;
> >title1 "Title for my means";
> >title3 "Number of observations (N), Average (mean) and standard deviation
> >footnote1 " ";