ref.grid-class: Classes "ref.grid" and "lsmobj"
Description
A reference grid encapsulates everything needed to compute least-squares means, independently of the underlying model object. The "lsmobj" class is a minor extension of "ref.grid" where the linear predictors for the reference grid are transformed in some linear way such as marginal averages or contrasts.Objects from the Classes
Objects of class "ref.grid" are most commonly created by calling the ref.grid function.
Objects of class "lsmobj" are created by calling lsmeans or a related function such as contrast.Extends
Class "lsmobj" extends Class "ref.grid", directly. There is hardly a difference between these classes except for how the slots linfct and grid are obtained, and their show methods.Examples
Run this codeshowClass("ref.grid")
showClass("lsmobj")
Run the code above in your browser using DataLab