search for: samplesset

Displaying 7 results from an estimated 7 matches for "samplesset".

2010 Apr 19
1
BRugs
...index is greater than array upper bound for a1 [1] "C:\\DOCUME~1\\Owner\\LOCALS~1\\Temp\\RtmpNvSdyb/inits1.txt" Initializing chain 1: model must be compiled before initial values loaded model must be initialized before updating model must be initialized before DIC an be monitored Error in samplesSet(parametersToSave) : model must be initialized before monitors used I checked the main effects alone, and it works fine, so I don't really understand why it's saying, "array index is greater than array upper bound for a1." Anyone who could help me with this would be greatly app...
2010 Oct 15
1
Problem using BRugs
...ble ww is not defined in model or in data set [1] "C:\\DOCUME~1\\maomao\\LOCALS~1\\Temp\\RtmpqJk9R3/inits1.txt" Initializing chain 1: model must be compiled before initial values loaded model must be initialized before updating model must be initialized before DIC an be monitored Error in samplesSet(parametersToSave) : model must be initialized before monitors used ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I did define variable "ww" in my data and model (they are listed below). I am not sure if this is due to some errors in my code (pl...
2011 Oct 24
0
Output from BRugs Doesn't Match That from OpenBUGS
...compiled > model.init.name = bugsInits(inits) > modelInits(rep(model.init.name,n.chains)) Initializing chain 1: initial values loaded but chain contain uninitialized variables > modelGenInits() initial values generated, model initialized > modelUpdate(25000) 25000 updates took 1 s > samplesSet(c("sigma2.with","sigma2.btw")) monitor set for variable 'sigma2.with' monitor set for variable 'sigma2.btw' > #dicSet() > modelUpdate(100000) 100000 updates took 5 s > samplesStats("*") mean sd MC_error val2.5pc median val97.5p...
2012 Jan 24
1
Error from Brugs "'r for windows gui front-end has stopped working''
Dear all, I just try to run the example in R brugs packages, but not only once. Loop is added in this example. After several times (7, 11, or other random number), there is an error message "r for windows gui front-end has stopped working". This happened in two laptops with windows 7 and vista. I have tried different versions of R (2.14.1 and 2.13) and Brugs packages (0.7.1 and 0.7-5).
2010 Aug 10
0
Error in R2Bugs
...before initial values loaded Initializing chain 3: model must be compiled before initial values loaded model must be compiled before generating initial values Sampling has been started... model must be initialized before updating model must be initialized before DIC an be monitored Error in BRugs::samplesSet(parametersToSave) : model must be initialized before monitors used Thanks for your help! John R commands datalist<-list("r", "N","n","Lev", "Light", "Soil1", "Soil2", "Soil3", "Consp", "Plot&quot...
2009 Oct 06
2
R, Coda, and OpenBUGS
Hi All, I am trying to figure out how to use R-Coda with the output from OpenBugs. I have installed and loaded the packages BRugs and R2WinBUGS. I have successfully run a simple Bayes model in WinBUGS using R2WinBUGS' "bugs" and have used "read.bugs" to build the coda object. I can successfully switch to OpenBugs and run the same model and get the basic summary
2013 Jan 18
0
problem that arises after using the new version of "BRugs"
...ot;) modelCheck(modelFile) modelData(bugsData(data)) modelCompile(numChains = 1) modelInits(bugsInits(inits)) burninIncSize <- round(nBurnin/(nThin * 100)) for (i in 1:100) { modelUpdate(burninIncSize, thin = nThin) } samplesSet(parametersToSave) iterIncSize <- round(nIter/(nThin * 100)) for (i in 1:100) { modelUpdate(iterIncSize, thin = nThin) } sims <- samplesStats("*") return(list(Stats = sims)) } require(BRugs) numKnots <- 25...