Closed gongardo closed 1 month ago
It happens when trying to estimate the normalizing constant, at the end of the main call:
if (priorprobs=="ScottBerger") lpriorAset<- -log(p+1)-lchoose(p, dimAset) if (priorprobs=="Constant") lpriorAset<- -p*log(2) if (!is.character(priorprobs)) { dimnotzero<- which(priorprobs>0) priorAset<- priorprobs[dimAset+1]/sum(exp(log(priorprobs[dimnotzero])+lchoose(p, dimnotzero-1))) lpriorAset<- log(priorAset) }
since priorprobs is a vector, it crashes
To solve the issue it suffices to put if (!is.character(priorprobs)) as the first conditional
solved in a branch called issue48 then incorporated into the master branch
It happens when trying to estimate the normalizing constant, at the end of the main call:
since priorprobs is a vector, it crashes