contr.independent: Independent contrast matrix

View source: R/JAGS-formula.R

contr.independentR Documentation

Independent contrast matrix

Description

Return a matrix of independent contrasts – a level for each term.

Usage

contr.independent(n, contrasts = TRUE)

Arguments

n

a vector of levels for a factor, or the number of levels

contrasts

logical indicating whether contrasts should be computed

Value

A matrix with n rows and k columns, with k = n if contrasts = TRUE and k = n if contrasts = FALSE.

References

\insertAllCited

Examples

contr.independent(c(1, 2))
contr.independent(c(1, 2, 3))


FBartos/BayesTools documentation built on Jan. 20, 2025, 8:15 a.m.