Hmm okay thanks! Not sure if this is useful but I got the macro from the following: https://support.sas.com/resources/papers/proceedings12/344-2012.pdf
... View more
Hi! I am using the following macro for CIF graphs: %CIF(DATA=, OUT=, TIME=, STATUS=, EVENT=, CENSORED=, GROUP=, TITLE= , OPTIONS=) My current output is in decimals, is there any way I can specify to get the y axis of cumulative incidence as a percentage?
... View more
Sure, the following is for the predictor sex for example: proc phreg data=suicide covsandwich(aggregate); class sex(ref='male') model time*event(0) = sex/ties=breslow; run;
... View more
I am using a Cox time to event model and wanting to do an univariable analysis. Is there a macro for that or do I have to test each variable one at a time?
... View more
Hello, how can I use the following data to conduct an independent t-test? The following data comes from different datasets. Sex Rate of suicide (in 100 person years) Male 30.5 Female 39.3
... View more
Each of the datasets are in this format: id Case Number of Hospitalization(count) Time contributed(yrs) 1 1 5 7.9 2 1 2 2.1 3 0 1 4.7 4 0 1 9.4 Ex: Total count for case: 7 (From 5+2 count for hospitalization); Total years for case = 10 (from 7.9 + 2.1) ; rate= 7/10 Total count for control :2 ; Total time for control = 14.1; rate = 2/14.1 Then I am wanting to compare the two rates.
... View more
Hey all! New to SAS so please excuse this newbie question. I have three different datasets that have services dates to the family doctor, diabetes clinic, hospitalization containing both cases and controls. I am looking to figure out the crude rate of visits to each of these settings by total visits/ combined person years for each setting and altogether. I did the counts within each of the three datasets per id present but my total person year variable comes from a different, fourth dataset - this total person years is one number for all cases and another for all controls. How can I structure the data to add up all the counts from each of the datasets and then divide by total person years, while also getting the confidence intervals. Then I need to I do a ttest to compare the rates between cases and controls as well.
... View more
Hi all! I have a dataset of a retrospective matched cohort study of cases and controls together. I am interested to know if a lookback injury rate before an index date into study, can be used as a predictor variable for a time to first injury Cox model post-index date. I was thinking of doing a number of events divided by person years sort of idea. Can someone offer their insights on this? Also if you can show me the code for doing this, I would be very grateful!
... View more