similar to: R2WinBugs problem

Displaying 20 results from an estimated 1000 matches similar to: "R2WinBugs problem"

2007 Apr 29
0
Going from Coda Files to R2WinBUGS
I'm currently using JAGS as my Bayesian program of choice due to working off of an older mac running OSX. I'd like to utilize some of the functions from R2WinBUGS, however. As such, I'm attempting to write something to go from coda output dumped by JAGS into the bugs object format - I've looked for functions that will convert from an mcmc object to a bugs object, but
2015 Apr 22
3
distribucion de IRWIN HALL
.... Un código más optimizado para la aproximación Monte Carlo de la distribución de IH N=10000 # tamaño simulación Monte Carlo n=5 # numero de uniformes cdf.IH <-function(x,n,N) { z=replicate(N,sum(runif(n))) apply(outer(x,z,">="),1,mean) } x=seq(0,5,.1) y=cdf.IH(x,n=n,N=N) plot(x,y,type="l") Un saludo. Olivier ----- Mensaje original ----- De:
2008 Jun 18
1
Error in bugs.run -- R2WinBUGS
Hi, I tried to use MethComp library and this library make use of the WinBUGS by R2WinBuGUS, but I get the follow error in bugs.run: *Error in bugs.run(n.burnin, bugs.directory, WINE = WINE, useWINE = useWINE, : * Look at the log file and try again with 'debug=TRUE' to figure out what went wrong within Bugs. Anyone can help-me, please? Thanks Cleber library( MethComp ) library(
2009 Aug 16
2
Question regarding finding credible interval using r2winbugs
Dear I am trying to find a 90% credible interval. I am using the following code. fit<-bugs( model.file=BUGScode, data=data, inits = list(geninits1,geninits2), parameters.to.save=keepers, n.chains=nchains, n.iter=runs, n.burnin=burn, n.thin=nthin, DIC= TRUE, bugs.directory="C:/Program Files/WINBUGS.14", \ ) But this is only giving 95%
2006 Aug 21
1
R2WinBugs
Hi all, I am having problems using the R2Winbugs function When I perform an analysis directly in Winbugs I can specify that the first 'n' iterations are to be done using an 'adaptive' phase. After this phase the markov chain seems to mix a lot better. I don't seem to be able to specify R2winbugs to carry out this adaptive phase, I can just specify the burnin length but
2011 Jan 14
1
R2WinBUGS-Windows 7
Dear 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),
2009 May 30
1
Help for running R2WINBUGS in VISTA
Dear, I am running the following R code using the R2WINBUGS package. fit<-bugs( model.file=BUGScode, data=data, inits = list(geninits1,geninits2), parameters.to.save=keepers, n.chains=nchains, n.iter=runs, n.burnin=burn, n.thin=nthin, bugs.directory="C:/Program Files/WinBUGS14" ) I put this code and the corresponding WINBUGS code "BUGScode" in the same folder
2009 Jan 20
1
R and WinBUGS (via R2WinBUGS) error
Dear UseRs, Apologies, I tried to post to the list yeasterday, but (for some reason) part of my message got missed off. Here's a second attempt. I am having some problems using R with WinBUGS using the R2WinBUGS package. Specifically, when I try to run bugs() I get the following message. Error in FUN(X[[1L]], ...) : .C(..): 'type' must be "real" for this format To
2008 Feb 07
2
Catching non-Merb::ControllerExceptions Exceptions
Is there an agreed upon method for handling exceptions thrown by something outside of Merb? For example, DataMapper now throws a DataMapper::ObjectNotFoundError when a record isn''t found in the db. I''d like to catch these exceptions and raise a C:E:NotFound exception instead, but without having to wrap a lot of code in begin/rescue/end blocks. Thanks, Mike Irwin
2007 Jul 26
2
error in using R2WinBUGS on Ubuntu 6.10 Linux
I am trying to run WinBUGS 1.4 from the Ubuntu 6.10 Linux distribution. I am using the R2WinBUGS packages with the source file listed below. WinBUGS appears to run properly, but I get the following message after WinBUGS starts in WINE. Does anyone know what may be causing this error and what the correction may be? Thanks ERROR MESSAGE: fixme:ole:GetHGlobalFromILockBytes cbSize is 13824
2015 Apr 21
3
distribucion de IRWIN HALL
estimados estoy considerando programar la funcion de distribucion de Irwin hall. lamentablemente no he tenido exito, pido que alguien me pueda colaborar con aquello, les quedo agradecido de antemano. -- atte. Lic. Genaro Llusco Silvestre gellusco en gmail.com Telf: 74028671 blog personal es: http://www.cientificest.blogspot.com [[alternative HTML version deleted]]
2005 Jul 27
1
error message running R2WinBUGS
*Dear R-user, * I try to run Winbugs from R using bugs function in R2WinBUGS.My model works well in Winbugs except that I can't get DIC. Since I don't need DIC, when I try to run Winbugs from R , I set "DIC=FALSE". My model is as following: model { for (i in 1:N) { for(j in 1 : T ) { x[i, j] ~ dbin(p[i, j],n[i]) #Hier.prior p[i, j] ~ dbeta(alpha[i, j], beta[i, j]) alpha[i, j]
2009 Jul 07
1
R2WinBUGS under Linux/WINE fails
Hi, I'm running wine-1.0.1, OpenBUGS 3.0.3, R 2.9.0, and R2WinBUGS on a Redhat Enterprise Linux machine. Following various peoples' suggestions... This works perfectly (yay!): wine Z:/opt/OpenBUGS/winbugs.exe Within R, however, I get this: (setup the example from ?bugs, then....) R> schools.sim <- bugs(data, inits, parameters, model.file, n.chains=3,
2010 Jun 23
1
A question about R2Winbugs
Dear R users: I was trying to fit a HMM with mixture of Gaussian into the dataset, and I tried to implement it by R2Winbugs. But I got the following errer. * Error in FUN(X[[1L]], ...) : .C(..): 'type' must be "real" for this format* Does anybody know what's the problem? Does R2Winbugs accept some matrix as inits? I would really appreciate your help. Thank you very much.
2013 Jun 24
0
Running MCMC using R2WinBUGS
Hi All: Not sure why my previous question never got posted. Here I am seeking some help on my code. I am using the following code to run MCMC simulation on the following data using the model below: # Data matrix<-NULL > csvs<-paste("MVN", 1:2,".csv",sep="") > for (i in 1:length(csvs)){ + matrix[[i]]<- read.csv(file=csvs[i],header=TRUE) +
2012 Aug 30
0
storage mode error question (R2winBUGS)
Hi all, I've been trying to run a model using R2winBUGS, and recurrently I get the message: "Error in FUN(X[[3L]], ...) : invalid to change the storage mode of a factor" My model is the following: sink("GLMM_Poisson.txt") cat(" model{ mu~dnorm(0,0.01) beta1~dnorm(-1,1) for(j in 1:nsite){ alpha[j]~dnorm(mu.alpha,tau.alpha) } mu.alpha~dnorm(0,0.01)
2008 Apr 16
3
Problems with R2WinBUGS
Hello, I am trying to use R2WinBUGS to conduct a mixed treatment comparison (MTC) analysis. On the surface, it seems to me that I am following the correct steps: (1) reading the data into R, (2) specifying initial values for the parameters in the model and (3) fitting the model to the data using the bugs() function in R2WinBUGS. However, I get the error message
2012 Jun 06
1
error calling Winbugs using R2WinBugs to run a multi-level model
Dear all, I'm calling Winbugs (1.4.3) through R2WinBugs (2.1-18 coda_0.14-7) to fit a switching random walk model, but come up with an instant trap with the log only displaying 'check('. I will paste the trap with session info below; I'd be very grateful for any ideas. Couple of leads: 1. I presume the problem relates to the r package itself or the way I call bugs(), because I
2009 Dec 16
1
WinBUGS - R2WinBUGS problem
Appologies for cross-posting Dear R users, I am using R2WinBUGS to call WinBUGS from R. After loading data, model, and initial values I call this command res <- bugs(data = dfile, inits = list(ifile), parameters.to.save = c("beta"), model.file = mfile, working.directory = tdir, n.thin = nthin, n.chains = 1, n.iter = niterations*nthin, n.burnin = 0, DIC = F, debug = T,
2010 Jun 16
1
The __WINE__ macro does not identify the Wine platform
According to some old discussion (http://www.mail-archive.com/wine-devel at winehq.com/msg15669.html) on wine-devel it appears that __WINE__ should be the macro used to identify the Wine platform, However, that doesn't appear to work for Windows native MinGW on wine. Here is my test code: #include <stdio.h> int main(int argc, char** argv) { #if defined(__WINE__)