Hi Stata Community,
Below is the output of the command,
I want to limit the output of MEAN and STANDARD DEVIATIONS VALUES up to 2 decimal points only.
I mostly use either summarize or tabstat command.
by group, sort : tabstat age parity bmi length breath thickness bloodloss sxtime hb1 stay deltahb deltatlc deltaplt, statistics( mean sd p50 min max )
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-> group = Drain
Stats | age parity bmi length breath thickn~s bloodl~s sxtime hb1 stay deltahb deltatlc deltaplt
---------+----------------------------------------------------------------------------------------------------------------------------------
Mean | 50.78846 3.576923 20.54686 7.296 4.006 4.4 125.7692 2.088077 11.54231 10.53846 -1.109615 669.8077 20.44327
SD | 11.06901 1.752826 2.257305 2.426803 1.845724 1.685823 50.03317 .578487 1.382006 3.426892 1.356504 1982.806 148.6593
p50 | 48.5 3 20 7 3.55 4.2 120 2 11.55 9 -1.05 750 -.11
Min | 35 0 15.2 3.1 1.2 1.2 50 1 8.4 7 -3.6 -4200 -3.17
Max | 77 10 26.6 13 9.2 8 350 3 14.2 21 2.3 4400 1071.8
--------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-> group = Control
Stats | age parity bmi length breath thickn~s bloodl~s sxtime hb1 stay deltahb deltatlc deltaplt
---------+----------------------------------------------------------------------------------------------------------------------------------
Mean | 44.07018 3.052632 23.03421 7.438596 5.157895 4.140351 177.2807 1.994737 11.36333 8.894737 -.8247368 1606.316 99.63017
SD | 7.321348 1.156056 3.607422 2.771137 1.740171 1.407107 57.15791 .442566 1.326175 2.380608 1.076479 1979.027 754.8179
p50 | 43 3 23 7 5 4 175 2 11.3 8 -.6 1900 -.3
Min | 35 2 16.2 4 2 2 50 1.2 7.2 7 -3.9 -3400 -2.08
Max | 75 7 31.2 13 8 9 275 3.5 14.5 17 2.4 5800 5698.4
--------------------------------------------------------------------------------------------------------------------------------------------
.
Below is the output of the command,
I want to limit the output of MEAN and STANDARD DEVIATIONS VALUES up to 2 decimal points only.
I mostly use either summarize or tabstat command.
by group, sort : tabstat age parity bmi length breath thickness bloodloss sxtime hb1 stay deltahb deltatlc deltaplt, statistics( mean sd p50 min max )
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-> group = Drain
Stats | age parity bmi length breath thickn~s bloodl~s sxtime hb1 stay deltahb deltatlc deltaplt
---------+----------------------------------------------------------------------------------------------------------------------------------
Mean | 50.78846 3.576923 20.54686 7.296 4.006 4.4 125.7692 2.088077 11.54231 10.53846 -1.109615 669.8077 20.44327
SD | 11.06901 1.752826 2.257305 2.426803 1.845724 1.685823 50.03317 .578487 1.382006 3.426892 1.356504 1982.806 148.6593
p50 | 48.5 3 20 7 3.55 4.2 120 2 11.55 9 -1.05 750 -.11
Min | 35 0 15.2 3.1 1.2 1.2 50 1 8.4 7 -3.6 -4200 -3.17
Max | 77 10 26.6 13 9.2 8 350 3 14.2 21 2.3 4400 1071.8
--------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-> group = Control
Stats | age parity bmi length breath thickn~s bloodl~s sxtime hb1 stay deltahb deltatlc deltaplt
---------+----------------------------------------------------------------------------------------------------------------------------------
Mean | 44.07018 3.052632 23.03421 7.438596 5.157895 4.140351 177.2807 1.994737 11.36333 8.894737 -.8247368 1606.316 99.63017
SD | 7.321348 1.156056 3.607422 2.771137 1.740171 1.407107 57.15791 .442566 1.326175 2.380608 1.076479 1979.027 754.8179
p50 | 43 3 23 7 5 4 175 2 11.3 8 -.6 1900 -.3
Min | 35 2 16.2 4 2 2 50 1.2 7.2 7 -3.9 -3400 -2.08
Max | 75 7 31.2 13 8 9 275 3.5 14.5 17 2.4 5800 5698.4
--------------------------------------------------------------------------------------------------------------------------------------------
.
Comment