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 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。 |
|
l****z 发帖数: 29846 | 3 加州大学物理学家Hal Lewis退出美国物理学会,“人造全球暖化骗局,用以十亿计的
美元,俘虏了那么多科学家”
http://thegwpf.org/ipcc-news/1670-hal-lewis-my-resignation-from-the-american-physical-society.html
Hal Lewis: My Resignation From The American Physical Society
Friday, 08 October 2010 17:19 Hal Lewis
E-mail Print PDF
From: Hal Lewis, University of California, Santa Barbara
To: Curtis G. Callan, Jr., Princeton University, President of the American
Physical Society
6 October 2010
Dear Curt:
When I first joined the American Physical Society s... 阅读全帖 |
|
|