I found this macro online and I may be useful for my analysis but when I tried to run it as it is, its not working. Anyone knows why? Here is the link: https://dlin.web.unc.edu/software/hazardratio/ %macro HazardRatio (Data = Data, Time = Time, Status = Status, Stratum =, Treatment = Treatment, Alpha = 0.05, Accuracy = 0.001, Result = HR_CI); …… %mend HazardRatio; data test; input Treatment Stratum Time Status; datalines; 1 2 1521 1 1 1 1537 0 0 2 963 1 1 2 293 1 0 2 659 1 1 2 1767 1 0 1 1865 0 1 1 1792 0 1 1 1841 1 0 1 1845 1 0 1 1888 1 0 1 1701 1 1 1 887 1 0 1 1918 1 1 1 1822 1 1 1 1638 1 0 1 1772 1 0 2 384 1 0 2 218 1 1 1 1775 1 1 1 1526 1 0 1 1745 1 0 1 1788 1 1 1 1387 1 ; run; %score_bound(Data = test, Time = Time, Event = Event, Stratum = Stratum, Treatment = Treatment, Alpha = 0.05, Accuracy = 0.000001); >>>>>>>>>>>>This is the log>>>>>>>>>>>> 294 %macro HazardRatio (Data = data, Time = Time, Status = Status, Stratum =, Treatment = Treatment, 294! Alpha = 0.05, Accuracy = 0.000001, Result = HR_CI); 295 296 %mend HazardRatio; 297 data test; 298 input Treatment Stratum Time Status; 299 datalines; NOTE: The data set WORK.TEST has 24 observations and 4 variables. NOTE: DATA statement used (Total process time): real time 0.28 seconds cpu time 0.12 seconds WARNING: Apparent invocation of macro SCORE_BOUND not resolved. 324 ; 325 run; 326 %score_bound(Data = test, Time = Time, Event = Event, Stratum = Stratum, - 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 327 Treatment = Treatment, Alpha = 0.05, Accuracy = 0.000001);
... View more