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
Interaction variable (using dummy and date variables)Hello everyone, I am trying to create an interaction variable by multiplying a dummy variable (0,1)…
regress help requestedI have a dataset in which all the dependent variables are for the years 2020 & 2021. I have 4 de…
Subgroup analysis using Metan commandDear group, Stata novice here trying to create meta-analysis forest plots using Stata. I am really …
A loop problemDear all: I have a problem when dealing with my data, for one variable. There is only "1","2", and …
Confidence intervals for percent changeDear all, This question might sound stupid but I can't find the way to calculate 95%CI for percent …
Subscribe to:
Post Comments (Atom)
0 Response to Stata reports decimals in IQR
Post a Comment