Learn R Programming

junco (version 0.1.2)

s_proportion_logical: s_function for proportion of TRUE in logical vector

Description

A simple statistics function which prepares the numbers with percentages in the required format. The denominator here is from the alternative counts data set in the given row and column split.

Usage

s_proportion_logical(x, label = "Responders", .alt_df)

Value

The rtables::in_rows() result with the proportion statistics.

Arguments

x

(logical)
binary variable we want to analyze.

label

(string)
label to use.

.alt_df

(data.frame)
alternative data frame used for denominator calculation.

See Also

s_proportion_factor() for tabulating factor x.