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;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.