Skip to contents

Apportioned Probabilities

Usage

apportion(object, from, to, ...)

# S4 method for EventsMCMC,numeric,numeric
apportion(object, from, to, groups = NULL)

# S4 method for EventsMCMC,list,missing
apportion(object, from, groups = NULL)

Arguments

object

An EventsMCMC object.

from

A numeric vector. If to is missing, must be a list (or a data.frame) with numeric components (columns) from and to.

to

A numeric vector. If missing, an attempt is made to interpret from in a suitable way.

...

Currently not used.

groups

A factor vector in the sense that as.factor(groups) defines the grouping. If from is a list (or a data.frame), groups can be a length-one vector giving the index of the grouping component (column) of from.

Value

A numeric

matrix of probabilities.

See also

Other tests: hiatus(), older()

Author

N. Frerebeau, A. Philippe