由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - [合集] Need help on data manipulation, thanks a lot!
相关主题
我也来请教一个SAS问题更新一下Taste of R,再问两个R的问题。
SAS问题来了SAS question: count non-missing value for different variables
请教一个sas编程问题how to output cumulative percent to a dataset from Proc Freq?
sas proc report的问题[合集] how to calculate column sum not row sum in SAS? thanks a lo
SAS问题SAS question using PROC SQL 高手请进, 包子答谢
请问R Code和 Matlab Code 思路是否近似?请教sas高人(数据读入)
[急求助] survival analysis (SAS)SAS 请教
请教一个SAS小问题:如何得到 one cumulative varialbe of character variable?[合集] How to specify a variable as missing
相关话题的讨论汇总
话题: 01话题: need话题: 03话题: counting
进入Statistics版参与讨论
1 (共1页)
p********a
发帖数: 5352
1
☆─────────────────────────────────────☆
sociopeople (sociopeople) 于 (Tue Mar 20 21:17:27 2007) 提到:
Below is the original dataset:
Id day
01 0
01 0
01 0
01 1
01 1
01 0
01 0
01 1
01 1
01 1
02 1
02 1
02 0
03 0
03 0
03 1
I need to create two variables counting the number of 0 and 1 respectively
the final dataset should look like: var1 is a variable counting the number
of 0 and var2 is a variable counting the number of 1
id var1 var2
01 3 2
01 2 3
02 1 2
03 3
1 (共1页)
进入Statistics版参与讨论
相关主题
[合集] How to specify a variable as missingSAS问题
how do i keep the multiple records? plz help请问R Code和 Matlab Code 思路是否近似?
关于stepwise programming[急求助] survival analysis (SAS)
请问sas中一个变量的内容被两个左斜杠(/)分成了三部分请教一个SAS小问题:如何得到 one cumulative varialbe of character variable?
我也来请教一个SAS问题更新一下Taste of R,再问两个R的问题。
SAS问题来了SAS question: count non-missing value for different variables
请教一个sas编程问题how to output cumulative percent to a dataset from Proc Freq?
sas proc report的问题[合集] how to calculate column sum not row sum in SAS? thanks a lo
相关话题的讨论汇总
话题: 01话题: need话题: 03话题: counting