I have a dataset with 30 variables containing one ICD-code each. I need to identify certain specific codes among these in order to create a new variable indicating whether certain specific codes are present or not (coded as 0 or 1). I've been told that perhaps a "for loop" could work, but I'm not sure how to do this. Any pointers?
Related Posts with For loop
Multi-level Linear Mixed Model - Correcting for multiple comparisonsHi, a first-time Statalist forum post for me! As part of my PhD studies, I've ran a Multi-level Lin…
Help: OS, HR and CI 95%Good morning guys, I need some clarification about overall survival, hazard ratio and C.I.95%. I wou…
save data in different file on the basis of variable valuesi have about 100 files similar to below example: I want to save this data in different files on the …
Bin widths are not constant in histogramDear StataList, I have a question regarding bin width in histograms. I cannot manage to create bin…
probit regressionHey Guys, I am trying to fit a probit regression. Where I use adtitional control variables such as …
Subscribe to:
Post Comments (Atom)
0 Response to For loop
Post a Comment