Similar to make_2d_Isingland(), but two categories of nodes can
be specified so the number of active nodes can be calculated
separately.
Arguments
- thresholds, weiadj
The thresholds and the weighted adjacency matrix of the Ising network. If you have an
IsingFitobject estimated usingIsingFit::IsingFit(), you can find those two parameters in its components (<IsingFit>$thresholdsand<IsingFit>$weiadj).- x, y
Two vectors specifying the indices or the names of the nodes for two categories. If they are character vectors, the names should match the row names of the
thresholdsmatrix.- beta
The \(\beta\) value for calculating the Hamiltonian.
- transform
By default, this function considers the Ising network to use
-1and1for two states. Settransform = TRUEif the Ising network uses0and1for two states, which is often the case for the Ising networks estimated usingIsingFit::IsingFit().
Value
A 3d_Isingland object that contains the following components:
dist_raw,distTwo tibbles containing the probability distribution and the potential values for different states.thresholds,weiadj,betaThe parameters supplied to the function.NvarThe number of variables (nodes) in the Ising network.
See also
make_2d_Isingland() for the algorithm.
