Date: Fri, 19 Mar 2004 17:02:58 -0500
Reply-To: Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Subject: Re: how to read the freq directly after proc means
You don't show the code which you run against SINMEDIAN and where
you "cannot USE freq as a variable directly", so here's just a guess. The
automatic variable is
_FREQ_
(notice the underscores, which are part of the name), not
FREQ
On Fri, 19 Mar 2004 13:08:48 -0800, sportsfun <sportsfun77@HOTMAIL.COM>
wrote:
>Hi,
>
>Apparently, I did not state my question clearly enough. I want to use
>freq as a variable (N) and I need to compute a new variable using
>(N-1). When I use data new, set sinmedian, I still cannot USE freq as
>a variable directly. For example, I want to compute y=ind/(n-1), how
>can I do this without exporting the data and importing the data again.
>Since the variable freq is already there, I think there must be some
>way to use this variable directly. I hope you can understand my
>question better this time. I know this is a stupid question for many
>of you, however, that is exactly whyI come here for help. Thank you so
>much for your patience and help!
>
>Having FUN!
>
>jim.groeneveld@VITATRON.COM (Groeneveld, Jim) wrote in message
news:<81BFA8F7807F1349AD6C16AD00A1AB9BD3A842@AMSM1BMSGM01.ent.core.medtronic
.com>...
>> Hi fun,
>>
>> How and who are you? Do a
>> PROC PRINT DATA=SINMEDIAN
>> and you'll see what's in there and how to use it directly.
>>
>> Regards - Jim.
>> --
>> . . . . . . . . . . . . . . . .
>>
>> Jim Groeneveld, MSc.
>> Biostatistician
>> Science Team
>> Vitatron B.V.
>> Meander 1051
>> 6825 MJ Arnhem
>> Tel: +31/0 26 376 7365
>> Fax: +31/0 26 376 7305
>> Jim.Groeneveld@Vitatron.com
>> www.vitatron.com
>>
>> My computer remains home, but I will attend SUGI 2004.
>>
>> [common disclaimer]
>>
>>
>> -----Original Message-----
>> From: sportsfun [mailto:sportsfun77@HOTMAIL.COM]
>> Sent: Friday, March 19, 2004 16:12
>> To: SAS-L@LISTSERV.UGA.EDU
>> Subject: how to read the freq directly after proc means
>>
>>
>> For example, I ran the following program:
>>
>> PROC MEANS DATA=SIN NOPRINT NWAY;
>> CLASS NSSIC;
>> VAR IND;
>> OUTPUT OUT=SINMEDIAN
>> MEDIAN=MEDIAN_IND;
>> RUN;
>>
>> I have the freq data in the sinmedian data but I don't know how to
>> read this data directly instead of export the file and read it through
>> infile input.
>>
>> Thanks a lot!
|