ref.grid: Create a reference grid from a fitted model

Description Usage Arguments Value Author(s) Examples

View source: R/ref.grid.R

Description

These functions are provided in lsmeans because they have been renamed in emmeans

Usage

1
2
3
4
ref.grid(object, ...)
    
recover.data(object, ...)
lsm.basis(object, ...)

Arguments

object

A model object in a supported class.

...

Additional arguments passed to companion functions in the emmeans package.

Value

lsmeans now passes all its computations to emmeans, and the return values are thus what is returned by the corresponding functions ref_grid, recover_data, and emm_basis, respectively.

Author(s)

Russell V. Lenth

Examples

1
2
3
4
5
6
7
8
  fiber.lm <- lm(strength ~ machine + diameter, data = fiber)
  rg <- ref.grid(fiber.lm, at = list(diameter = c(20, 24, 28)))
  rg
  
  # Note this is an emmGrid object defined in emmeans. The old "ref.grid"
  # class is now an extension of this:
  r.g. <- new("ref.grid", rg)
  lsmeans(r.g., "machine")

lsmeans documentation built on Nov. 3, 2018, 1:05 a.m.