Description Usage Arguments Details Value Examples
MCMC with bipartite graph
1 2 3 |
whole |
Vector of character strings with names of whole nodes |
part |
Vector of 0's and 1's indicating active part nodes; names are the names of the part nodes |
edge |
Matrix with two columns; each row indicates an edge between a whole node and a part node |
alpha |
Parameter alpha (0 < alpha < beta < 1) |
beta |
Parameter alpha (0 < alpha < beta < 1) |
pi |
Parameter pi (0 < pi < 1) |
nburn |
Number of burn-in generations |
ngen |
Number of sample generations |
sub |
Subsample rate for burn-in and sample files |
penalty |
Penalty per illegal node to loglikelihood |
initial |
Initial state (see Details) |
The initial
argument can take one of three values:
"inactive"
- all whole nodes inactive; "random"
- all
whole nodes active with probability pi
, no illegal nodes; or
"high"
- all nodes with proportion of connected part nodes
with response equal to 1 above 0.4 are active, no illegal nodes.
data frame with "whole" results; burn+sample detail are included as an attribute,
"samples"
, which is a matrix
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.