Podcast
Questions and Answers
Make a new variable indicating the age of leaving home or censoring, using
information about the year of birth and the year of leaving home. Name this variable “ageleft”.
Make a new variable indicating the age of leaving home or censoring, using information about the year of birth and the year of leaving home. Name this variable “ageleft”.
Declare the dataset to be survival data using the stset
command: the time-variable is “ageleft” and the failure variable is “left”.
Declare the dataset to be survival data using the stset command: the time-variable is “ageleft” and the failure variable is “left”.
Explore failure distribution and use Kaplan Meier of the age of leaving home to answer the following questions. Use the command “stdescribe” for summary statistics, and sts graph for plots of the survival and smoothed hazard.
Explore failure distribution and use Kaplan Meier of the age of leaving home to answer the following questions. Use the command “stdescribe” for summary statistics, and sts graph for plots of the survival and smoothed hazard.
sex = Male;
Category = time at risk; mean per subject = 24.56933; median per subject = 23;
sex = Female;
Category = time at risk; mean per subject = 22.71244; median per subject = 21;
Given the data above, who tends to leave home earlier/faster: women or men?
sex = Male; Category = time at risk; mean per subject = 24.56933; median per subject = 23; sex = Female; Category = time at risk; mean per subject = 22.71244; median per subject = 21; Given the data above, who tends to leave home earlier/faster: women or men?
Signup and view all the answers