utils.moc: MOC utility functions.

Description Usage Arguments Details Value Note Author(s)

Description

Functions to compute generalized logit and inverse logit with respect to a reference group.

mix.colors.moc computes subject colors useful for plotting by mixing group base colors according to the subject posterior probabilities.

mocUtils lists or returns an environment (which can be attached) containing the utility functions from Utils subdirectory of moc package.

Usage

1
2
3
4
5
6
inv.glogit(gmix, ref = 1)
glogit(p, ref = 1)

mix.colors.moc(object, group.colors = rainbow(object$groups))

mocUtils(filename)

Arguments

object

A fitted moc object.

p

Vector of probabilities to transform in generalized logit (log-odds) with ref as a reference group.

gmix

Vector of generalized logit with respect to ref to transform in probabilities.

ref

Reference group.

group.colors

The groups base colors to be mixed in proportion corresponding to posterior probabilities.

filename

The filename containing the source of utility functions or empty for a list of available source codes.

Details

These functions do not perform any check on their arguments.

Value

A vector of probabilities or generalized logit. mix.colors.moc invisibly returns a vector of subject mixed colors in hexadecimal RGB format.

Note

More utility functions are available in the Utils directory of the moc distribution.

Author(s)

Bernard Boulerice <bernard.boulerice.bb@gmail.com>


moc documentation built on May 1, 2019, 7:32 p.m.

Related to utils.moc in moc...