| lsmeans_helpers | R Documentation |
Helpers for Processing Least Square Means
h_get_emmeans_res(fit, vars, weights)
h_get_average_visit_specs(emmeans_res, vars, averages, fit)
h_get_spec_visit_estimates(emmeans_res, specs, conf_level, tests = FALSE)
h_get_single_visit_estimates(emmeans_res, conf_level)
h_get_relative_reduc_df(estimates, vars)
h_single_visit_contrast_specs(emmeans_res, vars)
h_average_visit_contrast_specs(specs, averages)
fit |
result of |
vars |
(named
Note that the main effects and interaction of |
weights |
( |
emmeans_res |
( |
averages |
( |
specs |
( |
conf_level |
( |
tests |
( |
estimates |
( |
h_get_emmeans_res(): returns a list with
object (emmGrid object containing emmeans results) and grid
(data.frame containing the potential arm and the visit variables
together with the sample size n for each combination).
h_get_average_visit_specs(): constructs average of visits specifications.
h_get_spec_visit_estimates(): estimates least square means as a data.frame
given specifications.
h_get_single_visit_estimates(): estimates least square means for single visits.
h_get_relative_reduc_df(): constructs data.frame with
relative reduction vs. reference arm based on single visit estimates.
h_single_visit_contrast_specs(): constructs single visit contrast specifications.
h_average_visit_contrast_specs(): constructs average visits contrast specifications,
given the specs for single visit contrasts and the averages required.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.