由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - a sas problem find function
相关主题
SAS question on find() function[Help] Dividing a SAS data set
问统计大侠们一个有趣的数学问题SAS online tutor does not work right now?
[合集] 请教一个关于logistic regression参数的问题问一个SAS 的问题
about R function to do N!How to prepare the SAS certificates without wasting time?
[合集] SAS base exam questionsDifferent results from SAS R and Fortran
考完Base SAS,汇报一下SAS reg results are different for language SAS... :(
[合集] SAS: 如何用语句删除Results【求助】计算机转Data Analytics
SUCK ON QUIZE RESULTS OF SAS BASE请问R好学吗?
相关话题的讨论汇总
话题: she话题: whereisshe话题: xyz话题: seashells
进入Statistics版参与讨论
1 (共1页)
p***7
发帖数: 535
1
xyz='She sells seashells? Yes, she does.';
startposexp=1-23;
whereisShe_ineg22=find(xyz,'She','i',startposexp);
put whereisShe_ineg22;
what is the return position?
the answer is 14
Can anyone tell me how 14 is resulted? I am confused about 'startposexp=1-23
;'
I am learning SAS by myself, it is hard for me to understand some concepts
Thanks so much!
k*******a
发帖数: 772
2
startposexp=1-23
说明他是 -22
负数表示从倒数第一个往前数22个
p***7
发帖数: 535
3
Thanks!
Does a startpos has an effect on returns?
please see the example below
xyz='She sells seashells? Yes, she does.';
startposvar=22;
whereisshe_22=find(xyz,'she',startposvar);
put whereisshe_22;
the answer is 27
which is as same as the one without startpos here
whereisshe=find('She sells seashells? Yes, she does.','she ');
put whereisshe;
they are both 27
t
k*******a
发帖数: 772
4
应该有关系
你这里从第22个开始找,前面那个是从-22((也就是大概十一二的样子)开始找,起始
位置不同,返回自然也不同

【在 p***7 的大作中提到】
: Thanks!
: Does a startpos has an effect on returns?
: please see the example below
: xyz='She sells seashells? Yes, she does.';
: startposvar=22;
: whereisshe_22=find(xyz,'she',startposvar);
: put whereisshe_22;
: the answer is 27
: which is as same as the one without startpos here
: whereisshe=find('She sells seashells? Yes, she does.','she ');

p***7
发帖数: 535
5
if startpos have an effect, the below program should be 5
xyz='She sells seashells? Yes, she does.';
But the answer is 27, which does not make any sense.
1 (共1页)
进入Statistics版参与讨论
相关主题
请问R好学吗?[合集] SAS base exam questions
求助 FIND(), cat(), catx() 的用法考完Base SAS,汇报一下
find a number in a range using SAS[合集] SAS: 如何用语句删除Results
[合集] [求助]一个生物统计工作的电话面试SUCK ON QUIZE RESULTS OF SAS BASE
SAS question on find() function[Help] Dividing a SAS data set
问统计大侠们一个有趣的数学问题SAS online tutor does not work right now?
[合集] 请教一个关于logistic regression参数的问题问一个SAS 的问题
about R function to do N!How to prepare the SAS certificates without wasting time?
相关话题的讨论汇总
话题: she话题: whereisshe话题: xyz话题: seashells