Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73268

wide to long...but different.

$
0
0
hello, i am working with a data set that i would like to analyze using st commands. however, the data i was given is not in the right format.
there is one line per patient with several dates that correspond to different types of events. the reshape long would be used if the variable corresponded to the same thing (say hemoglobin at day 0, 1, 10, n)
but here there are failure events and different types measurements and all have their own datevariable.
any suggestions as to how to reshape the data set so i can have a single time variable and the different events referring to the same time variable?
thank you
mathieu

Viewing all articles
Browse latest Browse all 73268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>