IsingSumLikelihood: Likelihood of sumscores from tractible Ising model.

View source: R/Distribution.R

IsingSumLikelihoodR Documentation

Likelihood of sumscores from tractible Ising model.

Description

This function returns the likelihood of all possible sumscores. Is only tractible up to rougly 10 nodes.

Usage

IsingSumLikelihood(graph, thresholds, beta, responses = c(0L, 1L))

Arguments

graph

Square matrix indicating the weights of the network. Must be symmetrical with 0 as diagonal.

thresholds

Vector indicating the thresholds, also known as the external field.

beta

Scalar indicating the inverse temperature.

responses

Response options. Typically set to c(-1L, 1L) or c(0L, 1L) (default). Must be integers!

Author(s)

Sacha Epskamp (mail@sachaepskamp.com)


SachaEpskamp/IsingSampler documentation built on Sept. 4, 2023, 10:30 p.m.