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;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.