由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - SAS question(ergent)
相关主题
SAS question: count non-missing value for different variables弱问一个SAS里面求adjusted means的问题
哪个SAS function可以读这样的variable求助SAS CODE:如何同时对90个variables进行log transformation?
请教如何这样保存数据 SASSAS question,thanks!
A SAS question郁闷死了,请教一个R的问题
请教SAS LABEL问题。请问如果用SAS 解决这个问题
SAS question - baoziHow to add a variable showing observations from 1 to 1000
SAS question (紧急求助,在线等)菜鸟问题 (R & SAS)
ask for help (urgent): A SAS question请问怎么样用SAS生成这样一个变量?
相关话题的讨论汇总
话题: var50话题: sas话题: newvar话题: var1话题: ergent
进入Statistics版参与讨论
1 (共1页)
e*******e
发帖数: 75
1
Hi,
I have a SAS question as follows:
I have a data set A with variable var1-var50;
and I need to create a new variable newvar=1 if all the var1-var50 equal to
missing.
How can I create the newvar? Thanks,
w****a
发帖数: 114
2
if n(of var1-var50)=0 then newvar=1;

to

【在 e*******e 的大作中提到】
: Hi,
: I have a SAS question as follows:
: I have a data set A with variable var1-var50;
: and I need to create a new variable newvar=1 if all the var1-var50 equal to
: missing.
: How can I create the newvar? Thanks,

e*******e
发帖数: 75
3
Thank you, but what if var-var50 are character variables?
b*****e
发帖数: 223
4
use array
Or, does nmiss work for both num or char? I am not sure

【在 e*******e 的大作中提到】
: Thank you, but what if var-var50 are character variables?
w****a
发帖数: 114
5
一样

【在 e*******e 的大作中提到】
: Thank you, but what if var-var50 are character variables?
e*******e
发帖数: 75
6
so, how I can use array to do it?
Thanks
1 (共1页)
进入Statistics版参与讨论
相关主题
请问怎么样用SAS生成这样一个变量?请教SAS LABEL问题。
请教一个sas编程问题SAS question - baozi
[合集] How to specify a variable as missingSAS question (紧急求助,在线等)
how to use first.var in sas macro?ask for help (urgent): A SAS question
SAS question: count non-missing value for different variables弱问一个SAS里面求adjusted means的问题
哪个SAS function可以读这样的variable求助SAS CODE:如何同时对90个variables进行log transformation?
请教如何这样保存数据 SASSAS question,thanks!
A SAS question郁闷死了,请教一个R的问题
相关话题的讨论汇总
话题: var50话题: sas话题: newvar话题: var1话题: ergent