Description Usage Arguments Value Author(s) See Also Examples
View source: R/get_lmer_linfct.R
Takes an lmerMod object from lme4::lmer() assuming a particular model formula type, then finds a contrast matrix to query the slope estimates. The most written is 'y ~ group + group:x + ( 1 + x | ID )'.
1 2 3 4 5 6 7 8 | get_lmer_linfct(
lmer_obj,
contrast = c("Identity", "Dunnett", "Tukey", "Sequen", "custom"),
grpnames = NULL,
reference_Dunnett = NULL,
slope_ind_char = ":x",
custom_contrast = NULL
)
|
lmer_obj |
an lmerMod object returned from lme4::lmer(). |
contrast |
character string specifying which type of contrast is desired. |
grpnames |
character vector with names of levels for group factor. |
reference_Dunnett |
character string with exact match to an element of grpnames. The exact match will be the reference group in Dunnett contrasts. |
slope_ind_char |
character string indicating how to discern slope parameters from "names(fixef(lmer_obj))". |
custom_contrast |
numeric matrix of contrasts for slope estimates. Column names must match exact with treatment group names. If it is not NULL, it overrides whatever is specified in "contrast". |
a contrast matrix.
Bill Forrest forrest@gene.com
1 | cat('No working example for unexported function get_lmer_linfct().')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.