IsingPL: Pseudo-likelihood

Description Usage Arguments Value Author(s)

View source: R/PseudoLikelihood.R

Description

Computes the pseudolikelihood of a dataset given an Ising Model.

Usage

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

Arguments

x

A binary dataset

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!

Value

The pseudolikelihood

Author(s)

Sacha Epskamp (mail@sachaepskamp.com)


IsingSampler documentation built on Jan. 25, 2020, 5:06 p.m.