Witihn Bayesian Proces module, when I create a mediation model and an additional direct effect of an extra IV on the DV, I get the following error (see below). This occurs when residual covariances, independent variables is NOT selected
Error in if (varx = 0) {: missing value where TRUE/FALSE needed
Stack trace
(function (mod, ll)
{
rEff <- .procBayesCalcRelEff(mod, ll)
return(loo::loo(ll, r_eff = rEff))
})(mod = dots[[1]][[1]], ll = dots[[2]][[1]])
.procBayesCalcRelEff(mod, ll)
loo::relative_eff(exp(logLik), chain_id = chainId)
relative_eff.matrix(exp(logLik), chain_id = chainId)
relative_eff.array(x, cores = cores)
apply(x, 3, ess_rfun)
FUN(array(newX[, i], d.call, dn.call), ...)
lapply(1:chains, FUN = function(i) posterior::autocovariance(sims[, i]))
FUN(X[[i]], ...)
posterior::autocovariance(sims[, i])
To receive assistance with this problem, please report the message above at: https://jasp-stats.org/bug-reports
![image](https://private-user-images.githubusercontent.com/56916115/323901202-c3958bf5-c428-4ddc-9a28-6887a10ab647.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3OTY1NzQsIm5iZiI6MTcyMTc5NjI3NCwicGF0aCI6Ii81NjkxNjExNS8zMjM5MDEyMDItYzM5NThiZjUtYzQyOC00ZGRjLTlhMjgtNjg4N2ExMGFiNjQ3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI0VDA0NDQzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRiZjFmMmRlYzg1ZWRhYzU3ZGVlZjdjMjA1NGY1OWNkOWEzN2QxODVkZGUxZDJhOTA4ZDlkMDBmZjg4MmExYjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lGHQKvWFmCplUGfnXnQGsEBSAOlixkQj74v5ugAJAuo)