由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - Help on SAS Character/word problems - BAOZI will be given
相关主题
[转载] Re: SAS plot problem求助:Import .sas7bdat to R
another sas questionhow to combine characters and numric variable in "where" clause by SAS?urgent!
关于SAS里TRUNCOVER一问Dataset name太长的问题。。。
SAS data merge求助SAS 怎样在Character value 里面输入numerical value
[合集] SAS的一个问题SAS Base 50题中的30和33题疑问
[合集] How to use SAS for complete permutation求SAS code
请教2个sas base问题Can SAS do this?
请教一个SAS coding (在线等)多谢问个SAS问题
相关话题的讨论汇总
话题: ceo话题: chairman话题: chmn话题: baozi话题: sas
进入Statistics版参与讨论
1 (共1页)
t**********r
发帖数: 182
1
Variable name is Title and has the following indications. I want to identify
a person who is both chairman and CEO. - I want to create a dummy CEO_chair
. How can I do this? thanks.
================================
chairman &CEO
chairman of the executive committee
chairman president & CEO
chairman& CEO
chairman, & CEO
chairman, CEO
chairman, CEO & chief creative officer
chairman, CEO & president
chairman, president & CEO
chairman, president & CEO
chmn & CEO
chmn, & CEO
chmn, emeritus
chmn, pres
P****D
发帖数: 11146
2
chmn是啥?chairman的简称?
P****D
发帖数: 11146
3
data Y;
set X; /* assuming your original dataset is X */
findchmn=indexw(position, 'chairman', 'chmn'); /* assuming that variable
name is position */
findceo=indexw(position, 'CEO');
if (findchmn~=0) and (findceo~=0) then CEO_chair=1; else CEO_chair=0;
run;
注意第一个indexw函数里的最后一个参数'chmn'是假设chmn是chairman的简称。如果还有更多简称,也要加在indexw函数里面。请自行Google学习indexw。
t**********r
发帖数: 182
4
check baozi.
1 (共1页)
进入Statistics版参与讨论
相关主题
问个SAS问题[合集] SAS的一个问题
SAS help : get macro variables as an string but not character variable.[合集] How to use SAS for complete permutation
问个 UNIX 系统下的Sas Macro问题请教2个sas base问题
SAS里什么命令可以看一个character variable 是否包含另一个 character variable请教一个SAS coding (在线等)多谢
[转载] Re: SAS plot problem求助:Import .sas7bdat to R
another sas questionhow to combine characters and numric variable in "where" clause by SAS?urgent!
关于SAS里TRUNCOVER一问Dataset name太长的问题。。。
SAS data merge求助SAS 怎样在Character value 里面输入numerical value
相关话题的讨论汇总
话题: ceo话题: chairman话题: chmn话题: baozi话题: sas