由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - How to read in binary data in SAS
相关主题
请教一个SAS画图SAS help
问SAS code:将pred(Y)跟实际(Y)在一个图里比较问一个简单的SAS问题,多谢
help: proc logisticSAS快捷键问题
SAS macro question请教个SAS问题
线性回归的SAS编程疑问求教 SAS数据转化
请教两个关于SAS的问题SAS simple question
SAS base 87% pass today帮忙看个SAS base 小问题吧
weird SAS请教SAS的例子中用到很多数据,这些数据存在呢里呢?
相关话题的讨论汇总
话题: sas话题: data话题: binary话题: read话题: chd
进入Statistics版参与讨论
1 (共1页)
G**7
发帖数: 391
1
Do anyone here know how to read in dichotomous data in SAS? Tried different
methods. none of them work.
c*****a
发帖数: 808
2
i don't know much. for my understanding,a dollar sign is needed in an input
statement if it is char
in the case of numeric, after reading data through the data step,you can use
'proc format' ( i think it is optional).
for example,
chd is binary
data heart;
input age chd;
datalines;
20 0
23 0
24 1
25 1
;
proc format;
value c 0 = 'No' 1 = 'Yes';
run;
proc catmod order=data;
direct age;
model chd = age /ml nogls pred =prob;
format chd c.;
run;
1 (共1页)
进入Statistics版参与讨论
相关主题
请教SAS的例子中用到很多数据,这些数据存在呢里呢?线性回归的SAS编程疑问
[SAS] call execute gives me error请教两个关于SAS的问题
ask SAS codeSAS base 87% pass today
[SAS] row mergingweird SAS
请教一个SAS画图SAS help
问SAS code:将pred(Y)跟实际(Y)在一个图里比较问一个简单的SAS问题,多谢
help: proc logisticSAS快捷键问题
SAS macro question请教个SAS问题
相关话题的讨论汇总
话题: sas话题: data话题: binary话题: read话题: chd