R language Access Menu

Summary of data by group

Code:

> summary(low~., birthwt)

low    N=189

+-------+-----------+---+---------+
|       |           |N  |low      |
+-------+-----------+---+---------+
|age    |[14,20)    | 51|0.2941176|
|       |[20,24)    | 56|0.3571429|
|       |[24,27)    | 36|0.4166667|
|       |[27,45]    | 46|0.1956522|
+-------+-----------+---+---------+
|lwt    |[ 80,112)  | 53|0.4716981|
|       |[112,122)  | 43|0.2325581|
|       |[122,141)  | 46|0.2608696|
|       |[141,250]  | 47|0.2553191|
+-------+-----------+---+---------+
|race   |1          | 96|0.2395833|
|       |2          | 26|0.4230769|
|       |3          | 67|0.3731343|
+-------+-----------+---+---------+
|smoke  |No         |115|0.2521739|
|       |Yes        | 74|0.4054054|
+-------+-----------+---+---------+
|ptl    |0          |159|0.2578616|
|       |1          | 24|0.6666667|
|       |2          |  5|0.4000000|
|       |3          |  1|0.0000000|
+-------+-----------+---+---------+
|ht     |No         |177|0.2937853|
|       |Yes        | 12|0.5833333|
+-------+-----------+---+---------+
|ui     |No         |161|0.2795031|
|       |Yes        | 28|0.5000000|
+-------+-----------+---+---------+
|ftv    |0          |100|0.3600000|
|       |1          | 47|0.2340426|
|       |2          | 30|0.2333333|
|       |3          |  7|0.5714286|
|       |4          |  4|0.2500000|
|       |6          |  1|0.0000000|
+-------+-----------+---+---------+
|bwt    |[ 709,2424)| 48|1.0000000|
|       |[2424,3005)| 49|0.2244898|
|       |[3005,3544)| 45|0.0000000|
|       |[3544,4990]| 47|0.0000000|
+-------+-----------+---+---------+
|Overall|           |189|0.3121693|
+-------+-----------+---+---------+


    Comments & Feedback