psrf_check: Check the potential scale reduction factors for all parameters (edges).
Description
This function treats the edges of the network as parameters, calculates
their potential scale reduction factors and returns the highest value.
Usage
psrf_check(params, q, k_max, num_it)
Arguments
params
Matrix of parameters.
num_it
Number of iterations/samples.
Value
Returns the highest PSRF value.
References
Gelman and Rubin (1992) Inference from iterative simulation
using multiple sequences, Statistical Science.