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
Disable variable expansionHi, it happens the following, I write for example: Code: use "db.dta" [...] gen year = start + de…
Specify e(title) to feed to etableWith the option `column(title)` etable is supposed to use the model titles as column headers: Code:…
Could you please help with coding "mixed-effects model"?I'd like to ask for advice on coding the "mixed-effects model" to see the percent change in health b…
Save results of estat ptrends to fileHow can I save the result of `estat ptrends` and `estat granger` to file? I have tried with etable, …
Could you please help with coding "mixed-effects model"?n/a …
Subscribe to:
Post Comments (Atom)
0 Response to Coding on Stata
Post a Comment