Discussion: View Thread

  • 1.  Running a sas macro

    Posted 03-16-2012 17:09
    This message has been cross posted to the following eGroups: Statistical Consulting Section and Statistical Computing Section .
    -------------------------------------------
    Respected

    Dear all,
    Does anybody know what's my wrong in running this sas codes?
    I wrote base on the sas macro of this paper:
    DATA Cirrhosis;
    INPUT pas event time group sex asc age prot;

    if group=0 then group=2;
    DATALINES;

    1 1 151 1 0 2 48 38
    2 1 2467 1 0 0 54 52
    3 0 4892 1 1 0 49 70
    4 1 290 1 1 0 65 40
    5 1 274 1 1 0 57 60
    6 1 281 1 0 0 55 40
    7 1 202 0 0 1 66 27
    8 0 2770 0 0 0 42 68
    9 0 1900 0 1 0 65 100
    10 1 53 0 1 2 65 27
    11 0 95 0 0 0 57 83
    12 1 1057 0 1 0 61 66
    14 1 1266 1 1 0 75 41
    15 1 203 1 1 0 64 62
    16 1 1388 1 1 0 64 88
    17 1 2994 0 1 0 52 56
    19 1 31 0 0 2 76 56
    20 1 2022 1 1 0 69 56
    21 1 100 1 0 0 65 80
    23 1 760 0 1 0 61 59
    ;
    %include 'C:\aalen.txt';
    %ADJSURV(Cirrhosis, time, event, group, sex asc age prot, 1, out);

    It does'nt produce the outputs?
    Many thanks,
    Amir

    -------------------------------------------
    Amir Kasaeian
    PhD Student in Biostatistics
    Tehran University of Medical Sciences (TUMS)
    amir_kasaeian@yahoo.com
    akasaeian@razi.tums.ac.ir
    -------------------------------------------


  • 2.  RE:Running a sas macro

    Posted 03-16-2012 20:45
    I hate to be obtuse, but did you download the macro?  If so, where on your hard drive did you store it?

    -------------------------------------------
    Eric Siegel
    Biostatistician
    Univ of Arkansas for Medical Sciences
    -------------------------------------------





  • 3.  RE:Running a sas macro

    Posted 03-16-2012 20:51
    I've just find the answer. Just a little error.
    Thank you.

    Cheers,
    Amir

    -------------------------------------------
    Amir Kasaeian
    PhD Student in Biostatistics
    Tehran University of Medical Sciences (TUMS)
    amir_kasaeian@yahoo.com
    akasaeian@razi.tums.ac.ir
    -------------------------------------------