Learn R Programming

emmeans (version 1.10.5)

str.emmGrid: Miscellaneous methods for emmGrid objects

Description

Miscellaneous methods for emmGrid objects

Usage

# S3 method for emmGrid
str(object, ...)

# S3 method for emmGrid print(x, ..., export = FALSE)

# S3 method for emmGrid vcov(object, ..., sep = get_emm_option("sep"))

Value

The vcov method returns a symmetric matrix of variances and covariances for predict.emmGrid(object, type = "lp")

Arguments

object

An emmGrid object

...

(required but not used)

x

An emmGrid object

export

Logical value. If FALSE, the object is printed. If TRUE, a list is invisibly returned, which contains character elements named summary and annotations that may be saved or displayed as the user sees fit. summary is a character matrix (or list of such matrices, if a by variable is in effect). annotations is a character vector of the annotations that would have been printed below the summary or summaries.

sep

separator for pasting levels in creating row and column names for vcov() results

Examples

Run this code
warp.lm <- lm(breaks ~ wool * tension, data = warpbreaks)
warp.emm <- emmeans(warp.lm, ~ tension | wool)
vcov(warp.emm) |> zapsmall()

vcov(pairs(warp.emm), sep = "|") |> zapsmall()

Run the code above in your browser using DataLab