marginal_weights.emmc: Create a multi-factor vector of weights

Description Usage Arguments Value Author(s)

Description

Create a vector of weights for use in 'contrast()' by specifying marginal weights per factor.

Usage

1
marginal_weights.emmc(x, .mweights = NULL, .grid = NULL, ...)

Arguments

x

not used (internal for ‘contrast()’).

.mweights

a list (or list of list) of vector(s) of marginal weights, the length of which must match the number of levels of the specified factor, and the name of which match the factor in .grid.

.grid

optional grid object made with emmeans.

...

not used.

Value

a data frame of weights, to be used in contrast.

Author(s)

Mattan S. Ben-Shachar


mattansb/marginC documentation built on May 28, 2019, 3:39 p.m.