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; |
|