由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - help with SAS code
相关主题
问一个SAS ROLLING AVERAGE CALCULATION 的问题[合集] What is new in Applied Linear Regression Models 5th edi
SAS call symput question请教问题:提供有用信息我会发包子
Questions about opreate large data set, thank you!Entry-level statistician 面试 都问什么 technical question ?
SQL老帖修改再发,骗包子
[合集] 问excel牛人一个问题[通知] Statistics 举办投票: 统计行业工作市场行情调查
[合集] 我想贷款去读个统计ms,不知道风险大不大统计版分享经验强帖必读以及奖励办法
[合集] 求助: credit risk analyst 的面试会有什么样的问题?如何准备银行Credit risk analyst面试?
[合集] 回复,RogerEric。 about risk analysisStatistics版 - 水枪排名
相关话题的讨论汇总
话题: sas话题: baozi话题: data话题: code话题: month
进入Statistics版参与讨论
1 (共1页)
h****i
发帖数: 79
1
Does anyone know how to write a SAS code to get the increasement data from
culmulated data?
That is: suppose x is a SAS variable contains year_to_date counts for 12
months, how to get the value of y that is the increases of x from month to
month?
will thank with "Baozi"
s******r
发帖数: 1524
2
Not sure I got you.
data b;set a;
y=x-lag(x);
run;

【在 h****i 的大作中提到】
: Does anyone know how to write a SAS code to get the increasement data from
: culmulated data?
: That is: suppose x is a SAS variable contains year_to_date counts for 12
: months, how to get the value of y that is the increases of x from month to
: month?
: will thank with "Baozi"

c*****t
发帖数: 1712
3
concur with scimitar
h****i
发帖数: 79
4
That's good.
Thanks.
Will ask "Banzhu" to give you "Baozi".
s*********r
发帖数: 909
5
In this case, y in the first obs will be a missing value.

【在 s******r 的大作中提到】
: Not sure I got you.
: data b;set a;
: y=x-lag(x);
: run;

s******r
发帖数: 1524
6
If not missing, how you define one record without previous history?

【在 s*********r 的大作中提到】
: In this case, y in the first obs will be a missing value.
d*******o
发帖数: 493
7
data b;set a;
if _n_ = 1 then y = 0;
y=x-lag(x);
run;
h****i
发帖数: 79
8
包子一个已奉上。

【在 s******r 的大作中提到】
: Not sure I got you.
: data b;set a;
: y=x-lag(x);
: run;

p********a
发帖数: 5352
9
Baozi to whom?

【在 h****i 的大作中提到】
: That's good.
: Thanks.
: Will ask "Banzhu" to give you "Baozi".

1 (共1页)
进入Statistics版参与讨论
相关主题
Statistics版 - 水枪排名[合集] 问excel牛人一个问题
统计版水枪统计[合集] 我想贷款去读个统计ms,不知道风险大不大
这个问题的答案是什么?[合集] 求助: credit risk analyst 的面试会有什么样的问题?
where is that book free downloading website?[合集] 回复,RogerEric。 about risk analysis
问一个SAS ROLLING AVERAGE CALCULATION 的问题[合集] What is new in Applied Linear Regression Models 5th edi
SAS call symput question请教问题:提供有用信息我会发包子
Questions about opreate large data set, thank you!Entry-level statistician 面试 都问什么 technical question ?
SQL老帖修改再发,骗包子
相关话题的讨论汇总
话题: sas话题: baozi话题: data话题: code话题: month