moebius | R Documentation |
Given a full probability distribution over vertices of a graph, returns the value of the associated generalized Moebius parameters.
moebius(graph, ptable, dims = rep(2, n), r = TRUE)
graph |
An object of class |
ptable |
An array containing a joint probability distribution over the
vertices of |
dims |
if |
r |
logical - should recursive factorizations be used? |
An object of class mparams
. That is, a list containing:
q |
The Moebius parameters. |
heads |
List of lists, sorted by district, and each sub-list containing integer vectors of the heads in that district. |
tails |
List of lists, containing integer vectors of the tails corresponding to the heads above. |
vnames |
Vector of names of vertices in graph. |
dim |
Number of categories for each variable. |
r |
as input |
This function does not verify that the given distribution
satisfies the conditions of the model for the maps being calculated, and
thus the distribution will not necessarily be recovered by mapping back
using probdist
.
Note this function will not generally return correct values for parameters in the recursive parametrization unless all variables are independent.
Robin Evans
Evans and Richardson (2010)
probdist
.
data(gr2, package="MixedGraphs")
# distribution of complete independence
ptable = array(1/32, rep(2,5))
moebius(gr2, ptable, r=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.