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
Sorting VariablesHi I need to create a certain variable by sorting other variables, but I am not sure how to sort t…
Dynamic binary panel models with endogeneityHi all, I have a question related to dynamic panel analysis. As we know, xtabond2 is suitable to u…
Concentration Index with Grouped IncomeHi all, I am trying to implement the overall correction for unequal income group stated in Clarke, …
Testing coefficients or predictions with > 500,000 unit fixed effectsPROBLEM: I am examining how mobility fell during a COVID lockdown in two types of communities, slum…
Dataset merging to maximize number of observationsHi, I would like to merge two datasets. Both datasets have the following columns: Year Gvkey Cusip …
Subscribe to:
Post Comments (Atom)
0 Response to Coding on Stata
Post a Comment