SingleSummary: Numeric Summaries

Description Usage Arguments

Description

Summarize a variable through a single numeric summary, such as the mean standard deviation, and sum.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
sm_mean(x, name = NULL)

sm_median(x, name = NULL)

sm_sd(x, name = NULL)

sm_sum(x, name = NULL)

sm_min(x, name = NULL)

sm_max(x, name = NULL)

sm_cor(x, y, name = NULL)

sm_cov(x, y, name = NULL)

sm_var(x, y, name = NULL)

sm_na_count(x, name = NULL)

sm_count(x, name = NULL)

sm_paste(x, name = NULL, sep = "; ")

Arguments

x

the variable to summarize. Will be used deparsed to infer the names of of the summaries.

name

provide a prefix variable name for the output. Set to NULL to infer from the input.

y

secomd variable to summarize, for correlation, covariance, and variance.

sep

string to use to collapse text values with 'sm_paste'


statsmaths/smodels documentation built on Jan. 9, 2021, 1:07 p.m.