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
Computation of densities for exemplary observations with Finite Mixture Model (FMM) and Quantil Regression (QR)Dear Statalist, I want to use a Finite Mixture Model (4 Gaussian's) and a Quantile Regression to co…
Difference in Differences with Multiple Periods - Interpretation of CoefficientI am currently looking at the effect of a policy change on some states in the US that implemented th…
likelihood ratio testsAm i correct in thinking that likelihood‐ratio tests can be used to assess whether extra variables j…
Transform string to date failedPlease help me to transform the "date" variable to real date form "YYYYMMDD". I have tried everythin…
Fixed effect and reverse causalityHi Statalist, i am analyzing a dataset of performance for Footballplayers and How a transfer affect…
Subscribe to:
Post Comments (Atom)
0 Response to Stata reports decimals in IQR
Post a Comment