Hello - I have a dataset that looks like the below and a simple lifetest code. Why does the resulting graph show "day" on the x axis when it should be "week"? Any easy way to fix? I'm using SAS for Academics/Studio/Learner.
Dataset columns:
ID. Treatment. Week. Event. Censor.
Code:
/*/
proc lifetest data=mukm;
time week*censor(1);
strata Treatment;
run;
/*/
Thank you and best wishes.
Anissa
There must be a label attached to the variable Week, change the label.
The default label is different than day in Academics at least.
proc lifetest data=mukm;
time week*censor(1);
strata Treatment;
label week = 'Week';
run;
There must be a label attached to the variable Week, change the label.
The default label is different than day in Academics at least.
proc lifetest data=mukm;
time week*censor(1);
strata Treatment;
label week = 'Week';
run;
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.