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
Suest command with more than 300 modelsHi all, I'm estimating arond 1000 models where the only thing that changes is the dependent variabl…
Restrict AxisI would like to restrict the x and y axis of a graph that was made using the following command; sca…
Wildcards with noccurHi there, Can I use wildcards with the egen function noccur? If not, is there another way to use wi…
Using svyset for melogitHello, I am analyzing a binary outcome (depvar) using melogit so that I may 1) account for the comp…
qreg converges in Stata/IC 15.0 (& gives reasonable standard errors), but fails to converge in Stata/MP 17.0Dear All, I have a household-level dataset of 511,877 observations, and run a quantile regression o…
Subscribe to:
Post Comments (Atom)
0 Response to Stata reports decimals in IQR
Post a Comment