Splitting spells in very large or daily datasets
Klaudia Erhardt and
Ralf Künster
German Stata Users' Group Meetings 2014 from Stata Users Group
Abstract:
We have written two Stata programs (do-files) dealing with spell data. The first program, splitspells, splits spell data in such a way that every split spell within the same case is either parallel or unique (in respect to the time period covered by the spells). This could be done by splitting each spell in single time-unit splits, a method that is not recommended—or even feasible—for large datasets or daily data, because it produces a maximum of additional records. In contrast, splitspells does the job by producing the least possible number of additional records and is a useful tool in the process of transforming multiple spell-type datasets into “unidimensional” sequence data. The second program, combispells, is used with episode data that are already split. Using existing spell-type variables and user-defined short labels, combispells produces a (labeled) numeric variable and a string variable that show the spell-type combinations occurring within parallel splits of a case. Thus it provides a user-friendly and easy-to-handle tool for the editing, revision, and exploration of spell data.
Date: 2014-07-09
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/RePEc/dsug2014/de14_erhardt_kuenster.pdf (application/pdf)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:dsug14:05
Access Statistics for this paper
More papers in German Stata Users' Group Meetings 2014 from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().