Hi all,
I have made a dataset containing variables like so: (sorry my dataex wont install properly!) cdeath=deathcode mdeath indicates death caused by tb - made this by using strpos if it includes 'tb' in description and correct code from cdeath.
Patid tdeath description deathdate __tbdeath(indicator)
1 ___A1 ____tb ______12/01/1996 __1
1 ___A3 ____non tb ___06/06/1995__ 0
1 ___A3 ____non tb____
2 ___A4
2___ A5
2 ___A6
I am trying to reduce the dataset to 1 row per person , and tb death should equal 1 if they have ANY malaria related death records and 0 if they had no malaria records.
Any help would be greatly appreciated!
Related Posts with Reducing dataset
SEM Problems of convergenceHi, I am trying to run a simple SEM model. When I replace a variable of my model for another I do n…
Count/aggregate occurences of a specific value: Soccer dataHello everyone I have match data (soccer) of several leagues, incl. timestamp, home team, away time…
option 'nomeans' in multigroup analysesHello I am currently working on a multi-group SEM. I've always fitted models with the option 'nomea…
Plotting between-individual variance from multilevel growth curve model with splinesDear Statalist, *this is my first post, I hope I haven't gotten it all wrong I am estimating growth …
Praising Stata outside the Stata ForumInteresting, I think: https://www.theanalysisfactor.com/wo...is-with-stata/ …
Subscribe to:
Post Comments (Atom)
0 Response to Reducing dataset
Post a Comment