SAS中文论坛

标题: 发个SAS讨论邮件列表,信狂多,看不完! [打印本页]

作者: shiyiming    时间: 2010-9-23 09:43
标题: 发个SAS讨论邮件列表,信狂多,看不完!
好像是来自Georgia大学,下面是历史邮件:
<!-- m --><a class="postlink" href="http://www.listserv.uga.edu/archives/sas-l.html">http://www.listserv.uga.edu/archives/sas-l.html</a><!-- m -->

加入邮件讨论:
<!-- m --><a class="postlink" href="http://www.listserv.uga.edu/cgi-bin/wa?SUBED1=sas-l&amp;A=1">http://www.listserv.uga.edu/cgi-bin/wa?SUBED1=sas-l&amp;A=1</a><!-- m -->

------------------------------------------------------------
大家加入要慎重啊,每天10-20封提问邮件,加上回信大概每天40/50封邮件吧。有一段日子没看了,现在已经900多未读了。

[img:c6ed5n19]http&#58;//files&#46;myopera&#46;com/zuojunjie/files/sendpix0&#46;jpg[/img:c6ed5n19]

------------------------------------------------------------
拿个邮件出来内容给大家看看(倒序的):

Jack

Might I guess that if it did not exclude automatic variables, then it would
include the value of _N_ in calculations that included the &quot;special variable
list name&quot; _NUMERIC_ as in the following code.

Nat

Data Jack;
input A _1 _2;
R = max( of _numeric_);
N = N  ( of _numeric_);
put _all_;
cards;
-1 -2 -3
run;


-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Jack
Hamilton
Sent: Saturday, September 18, 2010 3:50 PM
To: <!-- e --><a href="mailto:SAS-L@LISTSERV.UGA.EDU">SAS-L@LISTSERV.UGA.EDU</a><!-- e -->
Subject: Re: A data step question: comparison of values of multiple
variables

What I find interesting about this is how _ automatic variables are treated
- they are not included in _: .

   _error_ = 1;
   _a = 0;
   r = range(of _:);
   put r=;


That could have been predicted from the behavior of

   put (_all_)(=);

but that would require thinking about it, and thinking is hard work.


Are there any circumstances under which an automatic variable might be
included in _:  ?


--
Jack Hamilton
<!-- e --><a href="mailto:jfh@alumni.stanford.org">jfh@alumni.stanford.org</a><!-- e -->
Vous finirez tous par crever du confort




On Sep 18, 2010, at 11:54 , Mike Rhoads wrote:

&gt; Yep -- I had the same suggestion in a private reply.
&gt;
&gt; I have a hard time imagining any further reduction -- any takers?   <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
&gt;
&gt;
&gt; Mike Rhoads
&gt; <!-- e --><a href="mailto:RhoadsM1@Westat.com">RhoadsM1@Westat.com</a><!-- e -->
&gt;
&gt;
&gt; -----Original Message-----
&gt; From: Arthur Tabachneck [mailto:art297@NETSCAPE.NET]
&gt; Sent: Saturday, September 18, 2010 1:03 PM
&gt; To: <!-- e --><a href="mailto:SAS-L@LISTSERV.UGA.EDU">SAS-L@LISTSERV.UGA.EDU</a><!-- e -->; Mike Rhoads
&gt; Subject: Re: A data step question: comparison of values of multiple
variables
&gt;
&gt; Mike,
&gt;
&gt; I agree that it would be hard to get &quot;much&quot; simpler, but easy to get a
&gt; little simpler.  How about:
&gt;
&gt; data UnequalValues;
&gt;  set  sample;
&gt;  if range(of _:) ;
&gt; run;
&gt;
&gt; Art
&gt; --------
&gt; On Fri, 17 Sep 2010 16:13:30 -0400, Mike Rhoads &lt;RHOADSM1@WESTAT.COM&gt;
&gt; wrote:
&gt;
&gt;&gt; I received a private reply that contained the following improvement:
&gt;&gt;
&gt;&gt; if range(of _01-_09) ;
&gt;&gt;
&gt;&gt; Hard to get much simpler than that!
&gt;&gt;
&gt;&gt;
&gt;&gt; Mike
&gt;&gt;
&gt;&gt; -----Original Message-----
&gt;&gt; From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Mike
&gt; Rhoads
&gt;&gt; Sent: Friday, September 17, 2010 1:01 PM
&gt;&gt; To: <!-- e --><a href="mailto:SAS-L@LISTSERV.UGA.EDU">SAS-L@LISTSERV.UGA.EDU</a><!-- e -->
&gt;&gt; Subject: Re: A data step question: comparison of values of multiple
&gt; variables
&gt;&gt;
&gt;&gt; I'm getting to this thread belatedly, but how about simply:
&gt;&gt;
&gt;&gt; data UnequalValues;
&gt;&gt; set  sample;
&gt;&gt; if min(of _01-_09) ^= max(of _01-_09);
&gt;&gt; run;
&gt;&gt;
&gt;&gt;
&gt;&gt; Mike Rhoads
&gt;&gt; <!-- e --><a href="mailto:RhoadsM1@Westat.com">RhoadsM1@Westat.com</a><!-- e -->
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; -----Original Message-----
&gt;&gt; From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Mike
&gt; Zdeb
&gt;&gt; Sent: Wednesday, September 15, 2010 4:58 PM
&gt;&gt; To: <!-- e --><a href="mailto:SAS-L@LISTSERV.UGA.EDU">SAS-L@LISTSERV.UGA.EDU</a><!-- e -->
&gt;&gt; Subject: Re: A data step question: comparison of values of multiple
&gt; variables
&gt;&gt;
&gt;&gt; hi ... here's another idea
&gt;&gt; I think it should work with any similar data
&gt;&gt; <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> ...
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; data sample;
&gt;&gt; infile cards missover;
&gt;&gt; input PATIENT_ID _01-_09;
&gt;&gt; cards;
&gt;&gt; 001 8310
&gt;&gt; 002 3510 8310
&gt;&gt; 003 7500
&gt;&gt; 004 1010
&gt;&gt; 005 6910 8310
&gt;&gt; 006 . 8310
&gt;&gt; 007 0600
&gt;&gt; 008 2100 2100
&gt;&gt; 009 8000 8000 8000
&gt;&gt; 010 . 3500
&gt;&gt; ;
&gt;&gt; run;
&gt;&gt;
&gt;&gt; options missing = '';
&gt;&gt;
&gt;&gt; data new;
&gt;&gt; set sample;
&gt;&gt; if verify(tranwrd( catx(' ', of _:) , cats(coalesce(of _:)) , '*' ), '
&gt; *' );
&gt;&gt; run;
&gt;&gt;
&gt;&gt; options missing = '.';
&gt;&gt;
&gt;&gt; proc print data=new noobs;
&gt;&gt; run;
&gt;&gt;
&gt;&gt; PATIENT_
&gt;&gt;  ID        _01     _02    _03    _04    _05    _06    _07    _08    _09
&gt;&gt;   2       3510    8310     .      .      .      .      .      .      .
&gt;&gt;   5       6910    8310     .      .      .      .      .      .      .
&gt;&gt;
&gt;&gt; --
&gt;&gt; Mike Zdeb
&gt;&gt; U@Albany School of Public Health
&gt;&gt; One University Place (Room 119)
&gt;&gt; Rensselaer, New York 12144-3456
&gt;&gt; P/518-402-6479 F/630-604-1475
&gt;&gt;
&gt;&gt;&gt; Hi there,
&gt;&gt;&gt; I have a quesion about comparing values of multiple variables within an
&gt;&gt;&gt; observation.
&gt;&gt;&gt;
&gt;&gt;&gt; Here's how my dataset looks like:
&gt;&gt;&gt; PATIENT_ID  _01   _02   _03   _04  _00  _05  _07  _60  _06  _08  _09
&gt;&gt;&gt; -----------------------------------------------------------------------
&gt;&gt;&gt;        001  8310
&gt;&gt;&gt;        002  3510  8310
&gt;&gt;&gt;        003  7500
&gt;&gt;&gt;        004  1010
&gt;&gt;&gt;        005  6910  8310
&gt;&gt;&gt;        006        8310
&gt;&gt;&gt;        007  0600
&gt;&gt;&gt;        008  2100  2100
&gt;&gt;&gt;        009  8000  8000  8000
&gt;&gt;&gt;        010        3500
&gt;&gt;&gt;
&gt;&gt;&gt; Each observation has at least one non-missing value in variable _00 to
&gt;&gt;&gt; _60. I want to identify observations that had unequal values in variable
&gt;&gt;&gt; _00 to _60, such as PATIENT_ID 002 and 005 in the above sample dataset.
&gt;&gt;&gt;
&gt;&gt;&gt; I believe that there must be more than one easy and efficient way to do.
&gt;&gt;&gt; Thanks for your help!!
&gt;&gt;&gt;
------------------------------------------------------------

顺便发点入门资料下载:

<!-- m --><a class="postlink" href="http://www.douban.com/group/topic/13698454/">http://www.douban.com/group/topic/13698454/</a><!-- m -->



------------------------------------------------------------
作者: shiyiming    时间: 2010-9-23 09:48
标题: Re: 发个SAS讨论邮件列表,信狂多,看不完!
适合SAS进阶者。

上面好多牛人啊。
作者: shiyiming    时间: 2010-9-23 20:46
标题: Re: 发个SAS讨论邮件列表,信狂多,看不完!
使用SAS-L:
sas-L的人很好,乐于助人,水平高超。很多sas使用者对其评价颇高。我在sas-L中问过两个问题,一个圆满解决,一个不了了之。我基本上不浏览SAS-L,因为其中的问题大都和自己无关。对于我而言,一个问题虽有诸多答案但一个足矣,多余者皆为添足。
请务必慎重加入email list。我的教训是,因为邮件参差不齐且象潮水一般涌入,迫使自己不得不放弃此注册Email而弃之不用。最不幸的是那个Email是我最喜欢的。的确好像很难从Email list上取消自己--身不由己。如果有问题,可以直接访问SAS-L。
另外,如果使用SAS正版,可以考虑使用技术支持。通常来讲,其更加有的放矢,准确而且回信较快(10小时之内)。而且既然SAS为有偿使用,而且价格不菲,为什么不使用更加的专业服务呢?
作者: shiyiming    时间: 2010-10-3 18:37
标题: Re: 发个SAS讨论邮件列表,信狂多,看不完!
邮箱选项,将所选发件人邮件自动转入指定文件夹。 <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
节日快乐!




欢迎光临 SAS中文论坛 (https://mysas.net/forum/) Powered by Discuz! X3.2