Date: Tue, 3 Apr 2007 19:22:19 +0000
Reply-To: toby dunn <tobydunn@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: toby dunn <tobydunn@HOTMAIL.COM>
Subject: Re: proc tabulate : selective results for one level only
Content-Type: text/plain; format=flowed
Use a Where clause to subset your data.
To sensible men, every day is a day of reckoning. ~John W. Gardner
The important thing is this: To be able at any moment to sacrifice that
which we are for what we could become. ~Charles DuBois
Don't get your knickers in a knot. Nothing is solved and it just makes you
walk funny. ~Kathryn Carpenter
From: Micotine Muso <micotine@GMAIL.COM>
Reply-To: Micotine Muso <micotine@GMAIL.COM>
Subject: proc tabulate : selective results for one level only
Date: Tue, 3 Apr 2007 15:16:32 -0400
I am using proc tabulate to make a descriptive table for the data. The
variables of interest are dichotomous and prob tabulate gives me results for
both levels. However, I am only interested in one of the levels for each
variables. I have included my code below:
/* alcotab1 smoktab diabetes highedu aged are covariates */
/* wstcs is the exposure of interest with 5 levels. */
proc tabulate data=trott1 ;
class wstcs alcotab1 smoktab diabetes highedu aged ;
table (wstcs ='Waist Circumference' all='All')*
(rowpctn='Percent (row total)' /*n='Number'*f=9.
highedu='high education' aged='>40 yrs' alcotab1='>3 drink/day'
smoktab='smok' diabetes='diab' / rts=40;
Download Messenger. Join the iím Initiative. Help make a difference today.