descriptives: Creates a table of summary statistics

Description Usage Arguments Value

View source: R/descriptives.R

Description

Generates a table with summary statistics for each variable, optionally split by a grouping variable.

Usage

1
2
3
4
5
6
7
descriptives(
  df,
  treatment = NULL,
  variables = NULL,
  weights = NULL,
  nonparametric = NULL
)

Arguments

df

<tbl_df> Data frame with treatment and variables of interest as columns.

treatment

<tidy-select> Treatment column. If left blank, will produce univariate summary statistics.

variables

<tidy-select> Columns to summarize in table. If left blank, will be inferred from data.

weights

<tidy-select> Column with observation weights. If left blank, will not use observation weights.

nonparametric

<tidy-select> Columns of continuous variables to calculate median/IQR/non-parametric test.

Value

<tbl_df> Tibble with summary statistics split by treatment (optional).


MethodsConsultants/tibbletest documentation built on June 28, 2021, 5:22 p.m.