Compare expected values at combinations of predictor variable values. version 2.

scompare_v2(smargins, var, contrast.fun)

Arguments

var

A character string naming the variable to compute comparisons for.

contrast.fun

A function that takes expected values for each group and returns the desired QI

object

An object of class "smargins".