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
Simulations: Flat log likelihood encountered, cannot find uphill directionDear community, I am trying to see how many times using the Box-Jenkins methodology I select the cor…
Reshape problem: values of variable j not unique within idHi all, I am trying to generate Dummy variables from a question with multiple responses. Lamentably…
Coefficient of VariationDear all Statalist, Just an apparent easy question, even if I am having problems in computation: if…
Instrumental Variables and using xtivreg with squared termHi - I am using a panel dataset of US companies for the years 2000-19 (US Industrials - Worldscope).…
How to plot overlaying normal distributionsHi all, I'm trying to do something for which I can't really find any previous posts. Basically, I w…
Subscribe to:
Post Comments (Atom)
0 Response to Stata reports decimals in IQR
Post a Comment