Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

show_tests.ls_means

Show LS-means Hypothesis Tests and Contrasts


Description

Extracts the contrasts which defines the LS-mean hypothesis tests.

Usage

## S3 method for class 'ls_means'
show_tests(object, fractions = FALSE, names = TRUE, ...)

Arguments

object

an ls_means object.

fractions

display contrasts as fractions rather than decimal numbers?

names

include row and column names of the contrasts matrices?

...

currently not used.

Value

a list of contrast matrices; one matrix for each model term.

Author(s)

Rune Haubo B. Christensen

See Also

ls_means for computation of LS-means and show_tests for anova objects.

Examples

data("cake", package="lme4")
model <- lmer(angle ~ recipe * temp + (1|recipe:replicate), cake)

# LS-means:
(lsm <- ls_means(model))

# Contrasts for LS-means estimates and hypothesis tests:
show_tests(lsm)

lmerTest

Tests in Linear Mixed Effects Models

v3.1-3
GPL (>= 2)
Authors
Alexandra Kuznetsova [aut], Per Bruun Brockhoff [aut, ths], Rune Haubo Bojesen Christensen [aut, cre], Sofie Pødenphant Jensen [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.