When installing rjags the package appears to install correctly. However when loading the library the following error is recieved. library("rjags") Error: package or namespace load failed for ‘rjags’: .onLoad failed in loadNamespace() for 'rjags', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Users/aprmiller/AppData/Local/Programs/R/R-4.2.1/library/rjags/libs/x64/rjags.dll': LoadLibrary failure: The specified procedure could not be found. In...
I have tried a deterministic approach: #-Total Positive in Sample n y.obs <- sum(pos.obs[]) and get the error: "y.obs[1] is a logical node and cannot be observed" I have also tried using the "obersered functions" approach #-Total Positive in Sample n y.obs ~ sum(pos.obs[]) with the following error: "Attempt to redefine node y.obs[1]" when I try to use 'y.obs' as 'data' in the dbin. Using 'dsum' as #-Total Positive in Sample n y.obs ~ dsum(pos.obs[]) The error: "Length mismatch in Node::setValue"...
I am trying to use dsample to generate a sample from a distribution which is then used as data in a liklihood. But I am getting the following error: "y.obs[1] is a logical node and cannot be observed" Any thoughts on this issue? the offending code appears to be dsum and I have tried sum here also. Really stumped. Example code is here: model{ #----Likelihood for true prevalence for(i in 1:N){ y.true[i] ~ dbern(pi.true) } #----Generate Sample of Size n from Population N chosen_index[1:N] ~ dsample(rep(0.5,...
I am getting an error with Results.Jags. After extending a model I am unable to import...
Got this one figured out. It was a problem with how I was passing the index into...
I can't seem to figure this one out. The problem is I have an unbalanced dataset...
I can't seem to figure this one out. Th eproblem is I have an unbalanced dataset...