Skip to contents

This function makes a Boolean choice about chnages in temperature, based on the log(liklihood) values of two Markov chains in a parallel tempering setting.

Usage

change_temperature(b1, ll1, b2, ll2)

Arguments

b1

the inverse temperature of chain 1

ll1

the log-liklihood of chain 1

b2

the inverse temperature of chain 2

ll2

the log-lilihood of chain 2

Value

TRUE is the chains should swap their temperatures

Details

This function is useful if mpi.send() and mpi.recv() are used.