由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - SAS variable +(-1) 是什么意思?
相关主题
急问一个SAS 的常见问题help in sas
SAS Base 50题中的30和33题疑问overall mean in sas for several variables
sas question如何把一个variable中missing 的observation 付上非missing observation 的value
question on SAS macro (many thanks!!)SAS macro variable resolution question
SAS 问题求助 -- create new variableSAS code help!! thanks
SAS call symput question一道SAS面试题,关于dummy variable
请教SAS转换variable format informat包子求sas 问题解决办法
急问,在线等:SAS adv certification Question about SELECT v.s IF/THEN ELSEsas date variable exchange
相关话题的讨论汇总
话题: sas话题: weighs话题: startwght话题: variable话题: put
进入Statistics版参与讨论
1 (共1页)
c*******r
发帖数: 323
1
比如
data _NULL_;
put a +(-1);
run;
S******y
发帖数: 1123
2
see PUT statement and list output in SAS Online Doc
----------------------------------
/* A more meaningful example */
data _null_;
input idno name $ startwght;
put name 'weighs ' startwght +(-1) '.';
datalines;
032 David 180
049 Amelia 145
219 Alan 210
;
These lines are written to the SAS log:
David weighs 180.
Amelia weighs 145.
Alan weighs 210.
-----------------------------------
The +(-1) pointer control moves the pointer backward to remove the unwanted
blank that occurs between the value of STARTWGHT and the period.
------------------------------------------------------------------------
http://plus.google.com/+statsGuyMITBBS/about
------------------------------------------------------------------------

【在 c*******r 的大作中提到】
: 比如
: data _NULL_;
: put a +(-1);
: run;

1 (共1页)
进入Statistics版参与讨论
相关主题
sas date variable exchangeSAS 问题求助 -- create new variable
SAS Macro 问题请教 。。。SAS call symput question
请教一个SAS recode variable的问题吧请教SAS转换variable format informat
sas新手请教一个问题急问,在线等:SAS adv certification Question about SELECT v.s IF/THEN ELSE
急问一个SAS 的常见问题help in sas
SAS Base 50题中的30和33题疑问overall mean in sas for several variables
sas question如何把一个variable中missing 的observation 付上非missing observation 的value
question on SAS macro (many thanks!!)SAS macro variable resolution question
相关话题的讨论汇总
话题: sas话题: weighs话题: startwght话题: variable话题: put