-
Notifications
You must be signed in to change notification settings - Fork 108
/
calculate_summary_stat.Rd
53 lines (41 loc) · 1.9 KB
/
calculate_summary_stat.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-tbl_summary.R
\name{calculate_summary_stat}
\alias{calculate_summary_stat}
\title{This function takes in the meta data table, and calls the appropriate summarize function.}
\usage{
calculate_summary_stat(data, variable, by, summary_type, dichotomous_value,
var_label, stat_display, digits, class, missing, missing_text, sort,
row_percent)
}
\arguments{
\item{data}{Data frame}
\item{variable}{Character variable name in \code{data} that will be tabulated}
\item{by}{Character variable name in\code{data} that Summary statistics for
\code{variable} are stratified}
\item{summary_type}{A list that includes specified summary types.}
\item{dichotomous_value}{If the output is dichotomous, then this is the value}
\item{var_label}{String label}
\item{stat_display}{String that specifies the format of the displayed statistics.
The syntax follows \code{glue::glue()} inputs with n, N, and p as input options.
of the variable that will be displayed.}
\item{digits}{integer indicating the number of decimal places to be used.}
\item{class}{variable class. If class is NA, then all values are NA, and no
summary statistics will be calculated.}
\item{missing}{whether to include NA values in the table. \code{missing} controls
if the table includes counts of NA values: the allowed values correspond to
never ("no"), only if the count is positive ("ifany") and even for
zero counts ("always"). Default is "ifany".}
\item{missing_text}{String to display for count of missing observations.}
\item{sort}{string indicating whether to sort categorical
variables by 'alphanumeric' or 'frequency'}
\item{row_percent}{Logical value indicating whether to calculate
percentages within column to across rows}
}
\description{
This function takes in the meta data table, and calls the appropriate summarize function.
}
\author{
Daniel D. Sjoberg
}
\keyword{internal}