Skip to contents

Compute the mean of central estimates or the focal predictor

Usage

getmeans(
  object,
  what = c("both", "estimate", "focal"),
  focal = NULL,
  modelname = NULL
)

Arguments

object

varpred object.

what

a character specifying what mean to compute. If "estimate", the mean of the central estimate is computed, if "focal" the mean of the focal predictor, otherwise, both are computed.

focal

a character specifying the name of focal predictor. If NULL (default), x.var from the object is used.

modelname

character string naming varpred objects. Useful when comparing several objects.

Details

Provides a quick way to compare observed data marginal means with that of the central estimate. Current version ignores interactions and averages the fit column only.