meanTab: A function to create a table of means and SDs

Description Usage Arguments Examples

Description

For continuous variables, this function produces a table with the mean, SD, and N missing of each variable for each group, and a p-value for the Wilcoxon rank-sum test comparing groups (if group is specified)

Usage

1
meanTab(df, vars, group = NULL)

Arguments

df

dataframe

vars

list of continuous variables to calculate

group

grouping categorical variable

Examples

1
2
data(airquality)
meanTab(airquality, c('Ozone', 'Temp', 'Wind'), group = 'Month')

annebozack/table1 documentation built on May 23, 2019, 6:03 a.m.