last year i took STATA's introduction to survival analysis course, but they did not spend much time on putting data together for the analysis prior to setting the data. I need help with understanding when to set an observation as a failure. It is obvious that a failure occurs when a subject leaves the program (or dies), but what if they are still in the program when the program ends. When i took the course, i thought we were told that those observations should be left in (assigned a 0 for failure), then STATA would use the rest of the data to kind of project how long those ID's would have stayed in. But when looking at a colleague's SAS program, it looked like she censored this data. ie assigned a 1 to those observations so the were considered failures. Which is correct? or is the answer, it depends. ?
Related Posts with Survival Analysis
bar graph with event markersHello, I have a panel with 12 individuals from a company and daily data from 2010 to 2020. I have …
Loop over certain stata files in one folderHi all, I am trying to let Stata loop over only certain files ending with _p in one folder. The file…
Problems with generating a variable/cleaning data #2Hi Listers, I have trouble with generating a specific variable and cleaning my dataset in a certain…
Code for Approximating degree days with monthly average temperatureI am using CRU TS global gridded dataset for climate impacts on crop yields. The data has monthly me…
Calculate sum of values in a tableDear all, I am currently working with a dataset where I would like to get the sum of values with ce…
Subscribe to:
Post Comments (Atom)
0 Response to Survival Analysis
Post a Comment