Displaying 7 results from an estimated 7 matches for "brugsfit".
2012 Apr 04
1
BRugs crash, question
(Using BRugs 0.7-5, R 2.14.2 32-bit on 64-bit Windows 7, OpenBUGS 3.2.1)
1. BRugs crashes R for me as follows. Sorry about the lack of detail; please let
me know if / how to supply a more useful bug report on this issue.
fit <- BRugsFit(...)
# BRugs and OpenBUGS runs fine, the parameter estimates are reasonable
# across 3 chains
samplesBgr("beta") # crash
samplesBgr("beta", plot=FALSE) # also crash
2. I'd like to run a bunch of models via BRugs, saving the state after each one,
like so:
for (m in models)...
2005 Jul 19
1
Using BRugs, in FUN: .C(..) 'type' not "real"
To All,
I am using the BRugs package. In running the meta file BRugsFit() with a
syntactically correct model .txt file, I see the message:
Error in FUN(X[[1]], ...) : .C(..): 'type' must be "real" for this format
I haven't found information on this kind of error either here or on the
OpenBUGS/WinBUGS/BRugs bulletin boards. If there is a better...
2005 Apr 08
1
new R package BRugs
...Rugs, which is based on OpenBUGS 2.1.0.
OpenBUGS 2.1.0 has been released earlier this week
(http://mathstat.helsinki.fi/openbugs/).
BRugs contains a complete OpenBUGS installation as well as R code to
access OpenBUGS functionality from R. Simply install the package, load
it and say ?BRugs and ?BRugsFit respectively.
Sources (BRugs_0.2-0.tar.gz) and Windows binaries (BRugs_0.2-0.zip) are
available from
http://www.statistik.uni-dortmund.de/~ligges/BRugs/
(*this is a temporary directory that will be removed after we think
BRugs is really stable*).
Feedback, bug reports and feature requests to
s...
2010 Oct 15
1
Problem using BRugs
...ot;pol1","g","wo","wd","ww","mu","tau")
inits<-function() {list(beta=beta0, rho_o=rho_o_0, rho_d=rho_d_0,
rho_w=rho_w_0)}
parameters<-c("beta", "rho_o", "rho_d", "rho_w")
probit.sim<-BRugsFit(data,inits,parameters,modelFile="spatial.openbugs.txt",numChains=1,nIter=2000)
# my model
model {
for (i in 1:676) {
y[i] ~ dbern(p[i])
wwy[i]<- inprod(ww[i, 1:676] , y[])
woy[i]<- inprod(wo[i, 1:676] , y[])
wdy[i]<- inprod(wd[i, 1:676] , y[])
probit(p[i])<- rho_o *...
2010 Nov 22
1
R2WinBUGS help
When I use the 'bugs' function from R, WinBUGS runs correctly, but R freezes.
The only way to use R after this is to stop calculations (without my file
that documents the calculation). However, I want to save the output in R so
I can use it in further models. Does anyone know how to fix this problem?
--
View this message in context:
2010 Apr 19
1
BRugs
...-c(NA, rep(0, Lgen-1)),
a3<-c(NA, rep(0, Lrace-1)),
a12<-matrix( c(rep(NA, 13), NA,rep(0, 12)), ncol=2),
gam<-rep(1,Lstra), u<-matrix(rep(0, 30), nrow=2) )
}
bi.bmi.model.parameters=c( 'a0', 'a1', 'a2', 'a3', 'a12')
bi.bmi.model.bugs=BRugsFit(modelFile='bi.bmi.model2.txt',
data=bi.bmi.model.data,
inits=bi.bmi.model.init,
numChains=1,
para=bi.bmi.model.parameters,
nBurnin=20, nIter=40)
When I run this I get this message.
model is syntactically correct
data loaded
array index is greater than ar...
2010 Nov 24
0
4. Rexcel (Luis Felipe Parra)-how to run a code from excel
...ong as the WinBUGS process is opened. AFter closing it,
R should "respond" again.
If you like a more inetractive way of dealing with some BUGS
incarnation, try the BRugs package that makes use of OpenBUGS by typing
install.packages("BRugs")
library("BRugs")
?BRugs
?BRugsFit
Uwe Ligges
However, I want to save the output in R so
> I can use it in further models. Does anyone know how to fix this problem?
------------------------------
Message: 96
Date: Mon, 22 Nov 2010 16:41:44 -0500
From: David Winsemius <dwinsemius at comcast.net>
To: Xiaoqi Cui <x...