Hi!
I'm trying to use this formula to calculate eGFR: eGFR = 142*min(standardized Scr/K, 1)^α *max(standardized Scr/K, 1)^-1.200 *0.9938Age *1.012 [if female]
Scr= creatinine, e.g. creatinine=2.4.
In this formula, the min(standardized Scr/K, 1) means that you either choose the creatinine value divided by kappa, OR 1. The same goes for the max-one.
I'm looking for advice on how to write the command so Stata realizes this. Grateful for any help!
Related Posts with Writing a formula in which stata chooses a value or 1
Any way to get the equivalent of "list" but with variables in rows and observations in colums?The 'list' command is pretty handy, but in most cases the output doesn't fit the screen if you want …
Merger Simulationhi Stata people, I would like to have your expertise on a problem!! I am analyzing the demand estim…
Stata Is Omitted dummy variable(its value 0 and 1)Hi Experts Hope you are doing well! Please solve my query. Dataset is Unbalanced Panel Data Data w…
estat ginvariant with imputed dataHi. For a project I am using plausible values (performance data) and hence use sem in combination wi…
Risk ratio meta analysis - naive questionIt appears that risk ratio (comparing p/(p+q) for each group) is preferred to odds ratio (using p/q …
Subscribe to:
Post Comments (Atom)
0 Response to Writing a formula in which stata chooses a value or 1
Post a Comment