🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

Computer Assignment 6
4 Questions
0 Views

Computer Assignment 6

Created by
@ClearerKoala

Podcast Beta

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

More Quizzes Like This

Computer assignment 3
14 questions
IP Address Assignment Methods
30 questions
Variable Assignment in Programming
16 questions
Use Quizgecko on...
Browser
Browser