Learn R Programming

ggdmc (version 0.2.5.2)

hsumloglike: Add log-likelihoods across subjects at the hyper level

Description

An external sum log likelihoods for hyper parameters.

Usage

hsumloglike(ps, pp, prior)

Arguments

ps

a nsubject x npar matrix

pp

a temporary pp.prior values extracted from phi. The temporary pp.prior has no attached parameter names. phi is two-element list. First element is a location array of nchain x npar x nmc; second element is a scale array of nchain x npar x nmc.

prior

prior distributions at data level