Date: Wed, 18 Jul 2007 08:55:29 -0700 Reply-To: Paige Miller Sender: "SAS(r) Discussion" From: Paige Miller Organization: http://groups.google.com Subject: Re: a freq problem Comments: To: sas-l@uga.edu In-Reply-To: <1184679974.400360.120770@d30g2000prg.googlegroups.com> Content-Type: text/plain; charset="us-ascii" On Jul 17, 9:46 am, jinggong...@gmail.com wrote: > hi, everyone, > > there is a sas question: > the dataset is below: > 1 1 2 > 1 2 2 > 1 2 4 > 1 2 7 > 1 3 2 > 1 3 5 > 1 3 8 > 1 4 2 > 1 4 5 > 2 1 2 > 2 1 8 > 2 1 11 > 2 2 2 > 2 2 4 > 2 3 5 > 2 3 8 > 2 3 10 > 2 4 4 > 2 4 6 > 2 4 10 > 2 4 14 > 3 1 2 > 3 1 5 > 3 1 6 > 3 1 8 > 3 2 2 > 3 2 6 > 3 2 7 > 3 2 9 > 3 3 4 > 3 3 5 > 3 4 4 > 3 4 5 > 3 4 8 > 4 1 1 > 4 1 3 > 4 2 2 > 4 2 4 > 4 2 7 > 4 2 9 > 4 2 12 > 4 2 15 > 4 3 1 > 4 3 5 > 4 4 2 > 4 4 4 > 4 4 7 > 5 1 5 > 5 1 8 > 5 2 3 > 5 2 6 > 5 2 13 > 5 2 17 > 5 3 3 > 5 3 4 > 5 3 7 > 5 4 2 > 5 4 3 > 5 4 4 > 6 1 2 > 6 2 3 > 6 2 7 > 6 2 8 > 6 2 12 > 6 2 14 > 6 3 2 > 6 3 5 > 6 3 11 > 6 3 12 > 6 3 13 > 6 4 6 > 6 4 7 > 6 4 8 > 7 1 1 > 7 2 4 > 7 3 3 > 7 3 5 > 7 4 3 > 7 4 6 > 8 1 7 > 8 1 9 > 8 2 4 > 8 2 8 > 8 2 11 > 8 2 14 > 8 2 15 > 8 3 3 > 8 3 9 > 8 4 3 > 8 4 5 > 8 4 7 > 8 4 10 > 9 1 3 > 9 1 6 > 9 2 4 > 9 2 7 > 9 2 9 > 9 2 12 > 9 3 4 > 9 3 7 > 9 3 12 > 9 4 2 > 9 4 6 > 9 4 8 > 9 4 12 > 9 4 14 > 9 4 20 > 9 4 24 > 10 1 4 > 10 2 1 > 10 2 3 > 10 2 5 > 10 2 7 > 10 2 8 > 10 2 10 > 10 3 3 > 10 3 6 > 10 3 9 > 10 3 13 > 10 4 4 > 10 4 6 > 10 4 9 > 10 4 11 > 10 4 13 > 10 4 14 > > use the proc freq to create a data set containing 3 variables: id, x, > and percent, where percent is the number of observations with id-x > values divided by > > 1. the total number of observations. > 2. the total number of observations with the id value. > > my question is 'what is the total number of observations"?"what is the > total number of observations with the id value"? 10 or 125? > > Jill I didn't count, but I think the answer to question 1 is 125 or thereabouts and the answer to question 2 is 10, or thereabouts. But those don't seem to be a SAS question, even though you said it was. -- Paige Miller paige\dot\miller \at\ kodak\dot\com 

Back to: Top of message | Previous page | Main SAS-L page