AllComp: Creating a multiple comparison object for use in INLA

View source: R/AllComp.R

AllCompR Documentation

Creating a multiple comparison object for use in INLA

Description

This function creates all comparisons that do not include the baseline level from a factor object with 3 or more levels or from a character vector containing names of variables for which contrasts are desired.

Usage

AllComp(vars)

Arguments

vars

A factor object with three or more levels or a character vector with names of model variables

Details

This is a convenience function to avoid having to specify each comparison separately. It calls inla.make.lincomb. Please first use BaselineDef to define the baseline level. Comparisons with the baseline are default present in the output and hence do not need to be included.

Value

A list object of the required format for the lincomb option in FitAllShrink, FitInlaAll and inla,

Author(s)

Mark A. van de Wiel

See Also

inla.make.lincomb, BaselineDef


markvdwiel/ShrinkBayes documentation built on March 27, 2022, 7:47 p.m.