s_rbmi_lsmeans {tern.rbmi} | R Documentation |
Statistics function which is extracting estimates from a tidied LS means data frame.
Description
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 ( |
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)
[Package tern.rbmi version 0.1.6 Index]