Hi,
I have a hospital admission data in which every patient may have one to hundreds of repeated admissions. I want to create a variable to indicate me when patients have certain types of causes of admission identified by ICD codes, for instance ICD1, ICD2, ICD3. I am not sure if I should be using looping or something else.
I would be grateful to get any help.
Thank you,
Befikadu
Related Posts with How to flag an event of interest in a longitudinal dataset
Restructuring data (removing rows with blanks) - Cumulative returnsHi Statalister, I have a problem related to cumulative returns, I have a return series from 01-01-2…
keep if a variable is one of many values?I'm wondering whether there is a simple way to keep observations only if a variable is equal to one …
Stata commands on data imputationsHello everyone, I am dealing with a panel data set for 27 EU countries. I have the data for farmers…
Winsorizing before or after long-transformationDear users, I have a question regarding the handling of outliers in a log-log regression framework.…
Margins Beta regressionDear Statalisters, I am running a regression with proportions as dependent variable. In the beta re…
Subscribe to:
Post Comments (Atom)
0 Response to How to flag an event of interest in a longitudinal dataset
Post a Comment