Question: sas code and format? Survival Analysis (20 pts) We will use data on relapse to cocaine use following release from an inpatient treatment program. The
sas code and format? Survival Analysis (20 pts) We will use data on relapse to cocaine use following release from an inpatient treatment program. The data set has the following variables: ID - number identifying the individual week - the weeks of follow-up, 1 - 12 nasal - primary mode of ingestion before treatment, 1=intranasal or 0=all other routes relapse - the event status, i.e. whether of not the individual relapsed, 0=did not relapse, 1=relapsed The data are in the file called cocaine_relapse.csv and can be downloaded from the Canvas Assignment page. 24. Perform a Log-Rank test to compare survival distributions between primary mode of ingestion intranasal and other routes. Plot the Kaplan-Meier estimates
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
