由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - a question about sum() and array
相关主题
SAS问题请教hi, an interview question
一个混合型联合分布的问题sas一问
help for sas program一道SAS BASE题,HELP!
还有个问题,如何将一条记录变为空值。怎样在data step跳过格式不对的data record?
这就是R傻逼的地方,谁能告诉我?如何根据cdf(比较复杂,不能求微分)求其pdf
SAS help needed!statistical score modeling, and scoring models 是什么东西?
SAS问题求助[合集] 问个test的问题
小问题:请问如何分析这个数据?请教一sas programmm
相关话题的讨论汇总
话题: score话题: sum话题: array话题: total话题: question
进入Statistics版参与讨论
1 (共1页)
c*******7
发帖数: 2506
1
SCORE was defined as a numeric array/
I want to sum some of the elements of the array, like
TOTAL=SUM(OF SCORE{1}-SCORE{14});
but it did not work.
How should I modify it?
Thanks.
w*****e
发帖数: 806
2
TOTAL=SUM(OF SCORE{1}-- SCORE{14})会有用吗??
~~~用2个- 代替1个-
c*******7
发帖数: 2506
3
Tired. Still got the same eror.
ERROR 22-322: Syntax error, expecting one of the following: a name, ), ','.

【在 w*****e 的大作中提到】
: TOTAL=SUM(OF SCORE{1}-- SCORE{14})会有用吗??
: ~~~用2个- 代替1个-

D******n
发帖数: 2836
4
%macro test;
data a2;
set a1;
array score (14) abc--dde;
total = sum(of
%do i=1 %to 14;
score(&i)
%end;
);
run;
%mend;
%test
A****t
发帖数: 141
5
total=sum(of score{*});
1 (共1页)
进入Statistics版参与讨论
相关主题
请教一sas programmm这就是R傻逼的地方,谁能告诉我?
SAS的小问题SAS help needed!
问个简单的方差的题目。SAS问题求助
R问题:如果容易的得到Residual Sum of Squares?小问题:请问如何分析这个数据?
SAS问题请教hi, an interview question
一个混合型联合分布的问题sas一问
help for sas program一道SAS BASE题,HELP!
还有个问题,如何将一条记录变为空值。怎样在data step跳过格式不对的data record?
相关话题的讨论汇总
话题: score话题: sum话题: array话题: total话题: question