Computer Assignment 6
4 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

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”.

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.

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

Use Quizgecko on...
Browser
Browser