s_rbmi_lsmeans: Statistics function which is extracting estimates from a...

View source: R/tabulate_rbmi.R

s_rbmi_lsmeansR Documentation

Statistics function which is extracting estimates from a tidied LS means data frame.

Description

[Experimental]

Usage

s_rbmi_lsmeans(df, .in_ref_col, show_relative = c("reduction", "increase"))

Arguments

df

input dataframe

.in_ref_col

boolean variable, if reference column is specified

show_relative

"reduction" if (control - treatment, default) or "increase" (treatment - control) of relative change from baseline?

Value

A list of statistics extracted from a tidied LS means data frame.

Examples

library(rtables)
library(dplyr)
library(broom)

data("rbmi_test_data")
pool_obj <- rbmi_test_data
df <- tidy(pool_obj)

s_rbmi_lsmeans(df[1, ], .in_ref_col = TRUE)

s_rbmi_lsmeans(df[2, ], .in_ref_col = FALSE)


tern.rbmi documentation built on Aug. 8, 2025, 7:44 p.m.