Hello, I am a new Stata learner and having some difficulty coding. Say if blood pH was recorded for patients on mechanical ventilation from day 1 to 14; the preface is that they will be eligible for a certain treatment if pH is greater than a certain number (eg. 7.2). How do I code on to Stata such that I can generate 2 outputs, 1) the day they met the criteria so from days 1 to 14, when did they become eligible for treatment given if pH>7.2 and 2)record of the pH from the day they became eligible.
Related Posts with Coding on Stata
treatment turns on and offHello everyone, I hope you are very well, I have some monthly panel data at the state level, in thi…
expand dataDear Stata users, I have a panel database of countries observed on a yearly basis from 2004 to 2018…
Calculation of Blau Index / Simpson IndexHello everyone! I am trying to analyze the degree of national and gender diversity of TMTs of germa…
How to convert my FE-IV model (with intuitions borrowed from the RDD literature) into STATA language - Is IVREGHDFE the one?Hello dear stata friends! I am having some confusion regarding the implementation of my Individual-F…
How to Correct Data Errors in Longitudinal Format Data in Stata?I have a long format dataset with data error on the variables of kg5, k68, and k912 like this, clear…
Subscribe to:
Post Comments (Atom)
0 Response to Coding on Stata
Post a Comment