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
Renaming a set of variables with a single commandHi there, I have a two time period data (baseline in 2014 and midline in 2016). The variables in th…
Value labels for variable with lots of different valuesI want to use the user-written latab command which tabulates data in a latex table. Apparently, that…
A Question about OLS v.s.HLMHi! I am analyzing a two-level dataset, including student level and school level. The coefficient of…
General Question Hi all, I have a question. Using xtdpdsys I get a note accompanying the output that says "ir droppe…
creating 5 year averagesHi all, I am working with a data set that has event data at the district-month level where Code: …
Subscribe to:
Post Comments (Atom)
0 Response to Coding on Stata
Post a Comment