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;
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.
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.