由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 写了一段非常无聊的sas macro。。。娱乐下。我承认我空虚
相关主题
问个sas adv的问题一个有意思的问题,关于SAS的运算时间。
sas里面多次call一段程序用macro,那r里多次call一段程序生成多个文件该怎么办?SAS help : The scope of macro variables
update (some interview experiences)--急,面试求助:用ACCESS用尽心思做好了一个macro
Do you share your sas Macros or R code with co-workers?Re: SAS help : How to use Macro to select procedurs
没完没了的LAYOFF!sas 中如何给一个variable 加密?
Stupid SAS programming style is driving me crazy....贡献一个contract hourly rate
SAS MACRO和Proceduremacro里面能还用macro吗?
急问:SAS batch submission with macro variableNeed advice on SAS macro debugging
相关话题的讨论汇总
话题: four话题: three话题: put话题: let话题: want
进入Statistics版参与讨论
1 (共1页)
b*****s
发帖数: 67
1
%let one=1;
%let two=one;
%let three=two;
%let four=three;
%put I want three, so I get &four;
%put I want two, so I get &&&four;
%put I want one, so I get &&&&&&&four;
%put I want 1, so I get &&&&&&&&&&&&&&&four;
* 2*1+1 for two level;
* 2*(2+1)+1 for three level;
* 2*(2*3+1)+1 =15 for four level;
S*x
发帖数: 705
2
lol
有意思

【在 b*****s 的大作中提到】
: %let one=1;
: %let two=one;
: %let three=two;
: %let four=three;
: %put I want three, so I get &four;
: %put I want two, so I get &&&four;
: %put I want one, so I get &&&&&&&four;
: %put I want 1, so I get &&&&&&&&&&&&&&&four;
: * 2*1+1 for two level;
: * 2*(2+1)+1 for three level;

f*******0
发帖数: 693
3
是很无聊...
i******n
发帖数: 839
4
我不觉得无聊。做%DO LOOP,这个很有用。
寄信人: deliver (自动发信系统)
标 题: 本站转帐通知单
发信站: BBS 未名空间站 (Mon Apr 30 23:29:30 2012)
来 源: mitbbs.com
integrin,您好:
您转给 bbbless,现金(伪币):20,收取手续费:0.2
同时附加了如下留言给 bbbless.
Thank you for your SAS Macro
站务
m******u
发帖数: 277
5
Interesting~
a******n
发帖数: 11246
6
多谢。以前一直不肯定要几个&...
l******n
发帖数: 9344
7
非常无聊的run了一下,很好很强大

【在 b*****s 的大作中提到】
: %let one=1;
: %let two=one;
: %let three=two;
: %let four=three;
: %put I want three, so I get &four;
: %put I want two, so I get &&&four;
: %put I want one, so I get &&&&&&&four;
: %put I want 1, so I get &&&&&&&&&&&&&&&four;
: * 2*1+1 for two level;
: * 2*(2+1)+1 for three level;

P****D
发帖数: 11146
8
not 2^x-1?

【在 b*****s 的大作中提到】
: %let one=1;
: %let two=one;
: %let three=two;
: %let four=three;
: %put I want three, so I get &four;
: %put I want two, so I get &&&four;
: %put I want one, so I get &&&&&&&four;
: %put I want 1, so I get &&&&&&&&&&&&&&&four;
: * 2*1+1 for two level;
: * 2*(2+1)+1 for three level;

b*****s
发帖数: 67
9
yes. 2^x-1 is smarter:) 3x!

【在 P****D 的大作中提到】
: not 2^x-1?
1 (共1页)
进入Statistics版参与讨论
相关主题
Need advice on SAS macro debugging没完没了的LAYOFF!
R 语言有像SAS 一样的macro吗?Stupid SAS programming style is driving me crazy....
想自己收集数据做统计分析SAS MACRO和Procedure
Put an order variable in a smart way in SAS急问:SAS batch submission with macro variable
问个sas adv的问题一个有意思的问题,关于SAS的运算时间。
sas里面多次call一段程序用macro,那r里多次call一段程序生成多个文件该怎么办?SAS help : The scope of macro variables
update (some interview experiences)--急,面试求助:用ACCESS用尽心思做好了一个macro
Do you share your sas Macros or R code with co-workers?Re: SAS help : How to use Macro to select procedurs
相关话题的讨论汇总
话题: four话题: three话题: put话题: let话题: want