Description Usage Arguments Value Examples
View source: R/HierarchicalModels.R
This model assumes that the link existence probabilities of the matrix are known.
1 | Model.p.constant(n, p)
|
n |
dimension of matrix. |
p |
existence probability of a link. Either a matrix of dimension n or a single numeric value. A single numeric value leads to a matrix of existence probabilities that has 0 on the diagonal. |
the resulting model.
1 2 3 4 5 6 | m <- Model.p.constant(5,0.25)
m$matr(m$rtheta())
p <- matrix(c(0,0.99,0.99,0.5,0.5,0,0.01,0.01,0),nrow=3)
m <- Model.p.constant(5,p)
m$matr(m$rtheta())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.