sutable: Fast summary of a univariate table

Description Usage Arguments Value Author(s) See Also Examples

View source: R/sutable.R

Description

First apply univariateTable then call summary.

Usage

1

Arguments

...

Unnamed arguments and are passed to univariateTable as well as named arguments that match univariateTable's arguments, other arguments are passed to summary.univariateTable

Value

Summary table

Author(s)

Thomas A. Gerds <tag@biostat.ku.dk>

See Also

summary.univariateTable univariateTable

Examples

1
2
data(Diabetes)
sutable(gender~age+location+Q(BMI)+height+weight,data=Diabetes,BMI="Body mass index (kg/m^2)")

Example output

Loading required package: prodlim
                  Variable        Level    female (n=234)      male (n=169)
1                      age    mean (sd)       45.8 (16.6)       48.3 (15.8)
2                 location   Buckingham        114 (48.7)         86 (50.9)
3                                Louisa        120 (51.3)         83 (49.1)
4 Body mass index (kg/m^2) median [iqr] 29.5 [25.4, 34.0] 25.9 [23.1, 30.1]
5                               missing                 5                 1
6                   height    mean (sd)        63.7 (2.8)        69.1 (2.9)
7                               missing                 5                 0
8                   weight    mean (sd)      174.5 (41.2)      181.9 (38.8)
9                               missing                 0                 1
      Total (n=403) p-value
1       46.9 (16.3) 0.13994
2        200 (49.6)        
3        203 (50.4) 0.74223
4 27.8 [24.1, 32.2] < 1e-04
5                 6        
6          66 (3.9) < 1e-04
7                 5        
8      177.6 (40.3) 0.06777
9                 1        

Publish documentation built on Jan. 8, 2021, 5:37 p.m.