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
Matching 2 datasets based on multiple criteriaDear all, I am using Stata 13.1 and trying to match two datasets in the following logic: The first…
_const in logistic 0?Hello everyone, I´m fitting a logistic regression model and get a constant value close to 0, is thi…
graph box and graph boxDear Stata users, I have a continuous variable and I want to present the minimum value, maximum valu…
Comparing autocorrelationsDear Stata users, I'm struggling to find a robust way to compare the autocorrelations of two earnin…
Is it available to use fixed effect term in xtgee ?I read one article to identify effects of policies. The article was published from a high IF journal…
Subscribe to:
Post Comments (Atom)
0 Response to Stata reports decimals in IQR
Post a Comment