Per-visit ANCOVA of value_col on treatment, adjusted for baseline
(BASE) when it is available. The baseline visit (lowest AVISITN) is
then excluded. This is a per-visit model, not an MMRM.
Usage
fig_lsmeans(
df,
ctx = fig_ctx(),
value_col = "AVAL",
ci = 0.95,
point_labels = FALSE,
show_n = FALSE,
base_size = NULL,
config = NULL
)Arguments
- df
Analysis data (BDS).
- ctx
A
fig_ctx()list.- value_col
"AVAL"or"CHG".- ci
Confidence level.
- point_labels
Print the mean above each point?
- show_n
Print per-visit N under the panel?
- base_size
Font size;
NULLuses the configuration.- config
A
tlf_config();NULLresolves throughtlf_get_config().
See also
Other figure builders:
fig_boxplot(),
fig_edish(),
fig_forest(),
fig_km(),
fig_meanci(),
fig_shift(),
fig_spaghetti(),
fig_waterfall()
Examples
p <- fig_lsmeans(ex_adlb[ex_adlb$PARAMCD == "ALT", ], value_col = "CHG")
class(p)
#> [1] "ggplot2::ggplot" "ggplot" "ggplot2::gg" "S7_object"
#> [5] "gg"