Displaying 20 results from an estimated 42 matches for "winbugs14".
2008 Feb 29
1
bugs.seed= and summary.only= option in R2WinBUGS
Dear R user:
I am using R2WinBUGs to call WinBUGS from R. But I have some problems in
using either the option bugs.seed and summary.only in the function bugs.
Here are the programs and error messages. It appears that if I don't use
either option, the program runs fine. I am using R2.5.1 and WinBUGs14.
The program is not running:
> schools.sim <- bugs(data, inits, parameters, model.file,
+ n.chains=3, n.iter=5000, bugs.seed=100,
+ bugs.directory="c:/Program Files/WinBUGS14/",
+ working.directory=NULL, clearWD=TRUE)
Error in bugs(data, inits, param...
2008 Sep 02
0
No subject
...the command "/PAR
script.txt", it does not work:
$ open WinBUGS.exe '/PAR script.txt'
The file /PAR script.txt does not exist.
It parses '/PAR script.txt' as a file name rather than an argument. I tried
the following variation but it results in the same error:
$ open -a WinBUGS14 '/PAR script.txt'
The file /PAR script.txt does not exist.
When I try passing a simpler argument, just a file name, I see that it's
interpreted as a separate file to be opened:
$ open -a WinBUGS14 'script.txt'
This usually results in both applications opening separately -- it...
2011 Jan 14
1
R2WinBUGS-Windows 7
...ear all,
I'm having a slight issue with R2WinBugs.... it cannot detect where WinBUGS is located.
Q: How can I change the default path?
Any advice is greatly appreciated. Thanks.
Regards
Erica
I'm using R2WinBUGs (R version 2.21.1) on windows platform (Windows 7).
I have downloaded WinBUGS14.exe and patch 1.4.3.
As i'm working with Windows 7 (similiar issues to Vista occur), thus I have followed the instructions given on BUGS site:
>Note: There appears to be a problem with installing WinBUGS and/or various patches in Windows Vista. Vista doesn't seem to like anyone overwri...
2012 Feb 01
1
problem working directory WinBUGS using R
...inits = inits, parameters.to.save = params,
model.file = "model.txt",
n.thin = nt, n.chains = nc, n.burnin = nb, n.iter = ni, debug = TRUE, DIC =
TRUE, working.directory = getwd())
ls()
WinBUGS file is in working directory=D:/Line/documents but R looks for
winBugs at C:/Program Files/WinBUGS14/.
I already had changed the working directory for D:/Line/documents using
setwd () function and it still appears this error message:
In file(con, "rb") :
cannot open file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry.odc':
No such file or directory
Erro em bugs.run(n.bur...
2012 Oct 03
1
Errors when saving output from WinBUGS to R
...t;beta2", "beta3")
#call winbugs using bugs() function
model <- bugs(data, inits, parameters,
model.file="C:/Jinmodel/test_codes/model_poisson.txt", n.chains=1,
n.iter=30, n.burnin=0,n.thin=1, codaPkg=TRUE, DIC=TRUE, debug=TRUE,
bugs.directory="C:/Users/Yiyi/Desktop/winbugs14/WinBUGS14")
###########################################
I can get pretty good traceplots & parameter estimate outputs in WinBUGS.
However, when I switched back to the R Console (by pressing ESC key), a
warning message occurred:
Warning message:
running command '"C:/Users/Yiyi...
2009 Oct 03
3
Winbugs under R's error message
...d get the results, but I kept getting the error messages:
Error in file(con, "wb") : cannot open the connection
In addition: Warning messages:
1: In file.create(to[okay]) :
cannot create file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry_Rsave.odc', reason 'Permission denied'
2: In file(con, "wb") :
cannot open file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry.odc': Permission denied
I ran two data sets, and got the same error messages.
Why? How to get rid of the error me...
2008 Aug 19
2
Calling a windows program
Greetings,
How do I make a call to a windows program from R? For example in
windows, I would run this in a shortcut:
"C:\Program Files\WinBUGS14\WinBUGS14.exe" /PAR "myownscript.odc"
Thanks,
Ben Alexander-Eitzman
[[alternative HTML version deleted]]
2008 Aug 15
1
Question on default link directory
...ing WinBugs project recommendations for Vista Microcoft, I
installed my Winbugs software at C:\ (not at C:\Program Files).
However, when I run the attached code in R, R still looks for Winbugs
at C:\Program Files and ends up in numerous error messages.
I wonder if it is possible to direct R to C:\WinBUGS14 instead of
default link to
C:\Program Files\WinBUGS14
Thanks,
Eugene
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: QuestionCode.txt
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20080815/d0595610/attachment.txt>
2006 Dec 09
1
WinBUGS14 and R
..."a", "b", "b.hat", "sigma.y", "sigma.b")
ineq1 <- bugs (ineq.bugs, ineq.inits, ineq.parameters, "C:/Documents and
Settings/Chris/Desktop/4330/attempt2.bug", n.chains=3, n.iter=10,
debug=TRUE)
After I run the R code, R will crash and WinBUGS14 will post this in the
log:
display(log)
check(C:/Documents and Settings/Chris/Desktop/4330/attempt2.txt)
expected left pointing arrow <- or twiddles ~
data(C:/Documents and Settings/Chris/data.txt)
command #Bugs:data cannot be executed (is greyed out)
compile(3)
inits(1,C:/Documents and Setting...
2010 Jan 19
1
Help on using WinBUGS on Mac
Dear all,
I had trouble in setting up WinBUGS on my Mac, and I'm seeking for some help
here.
I followed the instruction by Tom Palmer here:
http://www.ruudwetzels.com/MacBUGS/winbugsonmacosx.pdf
I installed Darwine 1.1.21, and downloaded WinBUGS14. However, when I
double-clicked the WinBUGS14.exe file, a black-box dialog window poped up,
and I got error message in the Wine log as follows:
fixme:keyboard:RegisterHotKey (0x10032,13,0x00000002,3): stub
err:ole:CoGetClassObject class {0003000a-0000-0000-c000-000000000046}
not registered
err:...
2009 Oct 03
1
Why do I have the error message?
...d get the results, but I kept getting the error messages:
Error in file(con, "wb") : cannot open the connection
In addition: Warning messages:
1: In file.create(to[okay]) :
cannot create file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry_Rsave.odc', reason 'Permission denied'
2: In file(con, "wb") :
cannot open file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry.odc': Permission denied
I ran two data sets, and got the same error messages.
Why? How to get rid of the error me...
2012 Feb 07
1
R2WinBUGS error message
Hi!
I am new to BUGS and running BUGS from R. I am trying to run a regression
model from R, however I have this error message:
Error in file(con, "wb") : cannot open the connection In addition: Warning
messages:
1: In file.create(to[okay]) : cannot create file 'c:/Program
Files/WinBUGS14//System/Rsrc/Registry_Rsave.odc', reason 'Permission denied'
2: In file(con, "wb") : cannot open file 'c:/Program
Files/WinBUGS14//System/Rsrc/Registry.odc': Permission denied
Can anyone help me out ?
I am running R2WinBUGS from a windows 7 machine.
--
View this...
2007 Jul 21
1
R2WinBUGS awkward to use
...the 4th argument 'model'? Just I like I am also using the 'inits' object!
If I use 'model' in the same way as I use 'inits' I am getting the error:
> sim <- bugs(data, inits, parameters, model, n.chains=1, n.iter=5000,
bugs.directory="c:/Program Files/WinBUGS14", working.directory=NULL,
clearWD=TRUE, DIC=0)
Error in file.exists(c(...)) : invalid 'file' argument
Thanks Toby
data <- list(.....)
model <- function() {
[omitted]
}
write.model(model, "cwk.txt")
inits <- function() {.....}
parameters <- c(&quo...
2012 Jul 09
1
R to winbugs interface
...BUGS from R. I
have a model for WinBUGS and an R code which calls WinBUGS. On running the
code I am being shown the error message :
Error in file(con, "wb") : cannot open the connection
In addition: Warning messages:
1: In file.create(to[okay]) :
cannot create file 'c:/Program
Files/WinBUGS14//System/Rsrc/Registry_Rsave.odc', reason 'Permission denied'
2: In file(con, "wb") :
cannot open file 'c:/Program Files/WinBUGS14//System/Rsrc/Registry.odc':
Permission denied
In addition in WinBUGS a window crops up which is named black box. and says
trap #060 and t...
2005 May 25
1
The error while using R2WinBUGS
Dear all,
I tried to run WinBUGS model in R by using package R2WinBUGS, but I
failed because of the massage : cannot calculate DIC for model in log
file of WinBUGS14. In fact, the model works in WinBUGS and I can get
summaries of the model, such as density, stats..., except DIC , because
DIC may not be appropriate in this kind of model due to some
reasons(according to the manual of WinBUGS14), and WinBUGS cannot
calculate it, but this is allowed in WinBUGS. If...
2010 Aug 16
1
Specify decimal places for parameters in BUGS output
...a0=0.9, tau=1),
list(alpha0=0.8,tau=1)
),
model.file="B-LN_model_trial.txt",
parameters.to.save = c("sigma", "tau","alpha0","p"),
n.chains=3, n.iter=12000, n.burnin=5000,
bugs.directory="E:/AChaudhuri/winbugs14/WinBUGS14")}
print(bugs.output)
The output comes out as
Inference for Bugs model at "B-LN_model_trial.txt", fit using WinBUGS,
2 chains, each with 12000 iterations (first 5000 discarded), n.thin = 14
n.sims = 1000 iterations saved
mean sd 2.5% 25% 50% 75% 97.5%...
2006 Apr 29
3
Making R talk to Win/OpenBUGS in Linux (again)
...m(J, 0, 100), mu.theta = rnorm(1, 0, 100),
sigma.theta = runif(1, 0, 100))
}
parameters <- c("theta", "mu.theta", "sigma.theta")
schools.sim <- bugs(data, inits, parameters, model.file, n.chains = 3,
n.iter = 1000,bugs.directory = "/usr/local/share/WinBUGS14/",
working.directory = "/tmp", clearWD = FALSE, useWINE=T, newWINE=T,
WINE="/usr/bin/wine",WINEPATH="/usr/bin/winepath")
I do have the binary "/usr/bin/winepath", but can't tell how to give
R2WinBUGS what it wants. Many failed efforts below:
&g...
2005 Nov 09
2
About: Error in FUN(X[[1]], ...) : symbol print-name too long
...t;)
bugs(dat, inits=list(NULL), parm, "d2.bug",
n.chains = 1, n.iter = 5000, n.burnin = floor(n.iter/2),
n.thin = max(1, floor(n.chains * (n.iter - n.burnin)/1000)),
bin = (n.iter - n.burnin) / n.thin,
debug = TRUE, DIC = TRUE, digits = 5, codaPkg = FALSE,
bugs.directory = "C:/WinBUGS14/",
working.directory = NULL, clearWD = FALSE)
The objective of the program is to compare means of two independent samples
that results
in Beherens-Fisher posterior and in the model.file of WinBUGS "d2.bug"
there is the following codes:
model
{
for( i in 1 : 30 ) {...
2008 Aug 22
2
WinBUGS with R
...a","beta","beta0","y.star")
fitm <- bugs(data,inits,parameters,model.file="model.bug",
n.chains=3, n.iter=n.iter, n.burnin=n.burnin, n.thin = n.thin,
debug=FALSE,DIC=FALSE,digit=5,codaPkg=FALSE,
bugs.directory="C:/Program Files/WinBUGS14/")
but I always get the following error:
Error in FUN(X[[1L]], ...) :
.C(..): 'type' must be "real" for this format
I tried the web, but failed. Could anyone give me a clue?
Best!
--
View this message in context: http://www.nabble.com/WinBUGS-with-R-tp19108557p1910855...
2009 Jan 20
1
R and WinBUGS (via R2WinBUGS) error
...esbury.sim <- bugs(data="Wednesbury.data",
> inits="Wednesbury.inits", parameters="Wednesbury.parameters",
> model.file="p:/Wednesbury09/Wednesbury.bug", n.chains=1,
> n.burnin=1000, n.sims=10000, bugs.directory="c:/Program
> Files/WinBUGS14/", program="WinBUGS", debug=TRUE)
Error in FUN(X[[1L]], ...) :
.C(..): 'type' must be "real" for this format
>
This problem was discussed before
(https://stat.ethz.ch/pipermail/r-help/2008-August/171726.html), but
the discussion didn't seem to help m...