margin.w: Create a multi-factor vector of weights

Description Usage Arguments Value Author(s)

Description

Create a named vector of weights for use in 'contrast()' by specifying marginal weights per factor. Use this function instead of step 3 in Follow-Up Contrasts and Post-Hoc Tests in aov_car.

Usage

1
margin.w(.grid, ...)

Arguments

.grid

an ref.grid object made with lsmeans.

...

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 rg (see example).

Value

a vector 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.