Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: stset

From   Neophytos Stylianou <>
To   "" <>
Subject   st: stset
Date   Tue, 29 Jan 2013 15:38:48 +0000

I am about to perform some survival analysis and I need to set my dataset in survival data format.

Will the stset command work when data is not in the correct format i.e wide instead of long?

I have a dataset of many variables (550) and observations (60,000) in this format:
Mortality	timeADM	timeDisch           ID
Survived	Jan2003	Jan2003	1
Died                       Feb2004	Mar2004	2
Survived	Jun2006	Aug2006	3

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index