Skip to contents

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)

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.

Value

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

See also

[s_proportion_factor()] for tabulating factor `x`.