I want to report the interquartile range of charlson comorbidity index. I want do to that for a group of patients that actually died and for a group that survived. When I ask stata to report the IQR of the patients who died i get a p75 of 3,5. (so with a decimal). This value actually has no meaning(since you can't have a half comorbidity, you either have it or not). How can I prevent stata to report a decimal when there is none in the dataset when presenting the IQR?
The code I use:
. tabstat(charlson_comorbidity_scale_sum) if died == 1, statistics(p75)
variable | p75
-------------+----------
charlson_c~m | 3.5
------------------------
Related Posts with Stata reports decimals in IQR
Labelling group patterns in concatenated variableGood morning. I would like some help regarding how to label concatenated variables. I have almost 40…
Solving complex equations with STATADear Statalists, can anybody help me solve equations with STATA? In particular, I have one equation …
Create variables with loopHi, i would like to create some variables with loop. I have 5 variables : switch1 / switch2 /.../ sw…
sivqr now on SSC (for IV quantile regression)The command sivqr (smoothed instrumental variables quantile regression) is now available on SSC, tha…
varsoc with logarithms variablesI've transformed my variables into logarithms to analyze their elasticities, when I run the command …
Subscribe to:
Post Comments (Atom)
0 Response to Stata reports decimals in IQR
Post a Comment