compute_loglike compute log likelihood of data under the latent cause model.

compute_loglike(param, data, model, opts)

Arguments

param

parameter

data

single-subject data

model

1 = latent cause model, 2 = latent cause modulated RW model

opts

options

Value

lik: log-likelihood

latents: structure containing latent variables:

          b: beta coefficient mapping model CR to  measured CR

          sd: maximum likelihood standard deviation

          CR: predicted CR