lsmeans {emmeans} | R Documentation |
Wrappers for alternative naming of EMMs
Description
These are wrappers for emmeans
and related functions to provide
backward compatibility, or for users who may prefer to
use other terminology than “estimated marginal means” – namely
“least-squares means”. These functions also provide the functionality
formerly provided by the lsmeans package, which is now just a front-end
for emmeans.
Usage
lsmeans(...)
lstrends(...)
lsmip(...)
lsm(...)
lsmobj(...)
lsm.options(...)
get.lsm.option(x, default = emm_defaults[[x]])
Arguments
... |
Arguments passed to the corresponding |
x |
Character name of desired option |
default |
default value to return if |
Details
For each function with ls
xxxx in its name,
the same function named em
xxxx is called. Any estimator names or
list items beginning with “em” are replaced with “ls”
before the results are returned
Value
The result of the call to em
xxxx, suitably modified.
get.lsm.option
and lsm.options
remap options from
and to corresponding options in the emmeans options system.
See Also
emmeans
, emtrends
, emmip
,
emm
, emmobj
, emm_options
,
get_emm_option
Examples
pigs.lm <- lm(log(conc) ~ source + factor(percent), data = pigs)
lsmeans(pigs.lm, "source")