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
Sparse Matrix Capabilities in MataHello ! Are there any user written Mata Library packages for implementing sparse matrix and sparse m…
Problem with the output for the margins post commandHi Statalisters, For the below example code, I defined label values for the group variable. However,…
Plot coefficients from Conjoint AnalysisHello Statalist, I want to plot the coefficients of a conjoint analysis like the graph I put before…
Province and year fixed effectsHello altruists, I am new to this forum. I've been working on province and year fixed effects and ha…
Specify Range in Propensity Score MatchingDear All, I am using propensity score matching to match observations in current year with observati…
Subscribe to:
Post Comments (Atom)
0 Response to Coding on Stata
Post a Comment