Displaying 20 results from an estimated 1100 matches similar to: "R jags clear deviance"
2009 Oct 07
1
Which JAGS interface to use?
Frank (or anyone else), can you offer any comments comparing runjags,
R2jags, rjags ?
I couldn't find any vignettes, nothing except a brief mention on Task Views.
Kevin
On Wed, Oct 7, 2009 at 7:48 AM, Frank E Harrell Jr <f.harrell@vanderbilt.edu
> wrote:
> Have you tried the rjags package which uses the jags system? It is much
> more integrated into R and works quite well.
2012 Jan 13
1
R2jags update, jags.parallel
Anyone used jags.parallel in latest version of R2jags?
Ubuntu Oneiric, just ran updates in R to get latest R2jags package which
supposedly has added jags.parallel command to send chains to multiple
cores ... but when I submit, I get:
test <- jags.parallel(d, inits, param, model.file="rats.bug",
n.chains=3, n.iter=2000)
Error: could not find function
2011 Aug 11
1
R crashes when communicating with JAGS
There is a thread on this topic already:
http://finzi.psych.upenn.edu/Rhelp10/2010-August/250934.html
I'm rather mystified by a similar problem and wondering whether I've
overlooked something obvious. I'm running with latest versions of R and
all packages, and latest version of JAGS running under Windows 7.
Here's the problem. I have some source code. It's given below -
2012 Jan 12
1
Can't install rjags on LinuxMint 12
Hi,
I'm trying to install rjags and R2jags with R version 2.14.1 (2011-12-22)
on
Linux Mint 12 machine using
software repository:
deb http://cran.fhcrc.org/bin/linux/ubuntu oneiric/
jags seems to install OK, but rjags gives a weird error about not finding
fprec symbol.
Here is a history of the problem including several attempts to work
around it.
(Because of Ben Bolker's recent
2012 Nov 28
2
Error message R2Jags
Hi,
I'm trying to generate a GLMM for Y following a negative binomial
distribution. The first step I'm taking as a beginner in the use of R2Jags
is to generate a GLM for Y following a Poisson distribution (I heard it's
good in order to get used to the coding language), so here I am and here I
face the first error message for which I can't find any mistake of spelling.
Could you
2011 Apr 18
3
Request for jags package to be added to CRAN Debian/Ubuntu archives
May I request that Dirk's package for jags be added to the CRAN
archives for Debian and Ubuntu?
Installing the rjags package for R requires specific versions of jags
to be present on the system. The current version of rjags requires
jags version 2.2.0 or later but the version on the Ubuntu archives at
Canonical (i.e. not the CRAN archives) is 2.1.0-2
I can always install Dirk's package
2012 Feb 07
1
.Random.seed not found
Hi All,
I have a user who is receiving this error after running the following:
library(rjags)
library(R2jags)
x = c(1.6907, 1.7242, 1.7552, 1.7842, 1.8113, 1.8369, 1.8610, 1.8839)
n = c(59, 60, 62, 56, 63, 59, 62, 60)
r = c(6, 13, 18, 28, 52, 53, 61, 60)
N = 8
data=list("x","n","r","N")
inits=function(){
list(alpha.star=0,beta=0)
}
2013 Aug 16
1
running R in batch mode on Ubuntu
So, I'm submitting R 3.0.1 jobs on Ubuntu (13.04) using 'R CMD BATCH
--no-save filename.R &' (have an alias set to subr='R CMD BATCH --no-save")
and am having a problem of sometimes the process ending without the R
commands contained in the batch file actually having finished running.
We're running Bayesian models using R2jags jags.parallel and it ends
during the
2011 Jul 15
0
JAGS 3.0 and the Ubuntu repositories: A fix for jrags users
Ubuntu R users,
Early this month, version 3.0 of JAGS was released on its Sourceforge
page. Dirk Eddelbuettel and I quickly rolled up packages for Debian and
Ubuntu, respectively. If you are an Ubuntu user who utilizes my
Launchpad PPA for your R related .deb files, JAGS was updated automatically.
The downside to this is that JAGS 3.0 is not compatible with the R
package rjags, also found
2013 Jun 20
0
Installing Jags on 64 Bit Fedora
I know this has been covered before but I have read all the posts on this
subject but I still cannot resolve it. I tried to install rjags on a 64bit
Fedora 17 and I got this error message
Error : .onLoad failed in loadNamespace() for 'rjags', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object
'/usr/lib64/R/library/rjags/libs/rjags.so':
2010 Aug 30
1
R crashes when communicating with JAGS
Dear all,
I have a question regarding using JAGS and R. My problem is that every
single time I want to call JAGS from R the latter crashes (i.e. it
turns pale and the Windows tells me "R has stopped working".
Strangely, if there is a mistake in my jags code, this will be
reported without a crash. Only when the code is right and the model
should start to run, R stops working. I already
2011 Mar 14
1
JAGS/BUGS on gene expression data
Has anybody had issues running MCMC (either BUGS or JAGS) on data sets of
this magnitude (ie 30k x 20-30). I've been trying to run a hierarchical
random effects model on expression data but R completely stalls out on jobs
run on 32bit R on our server (doesn't respond...then eventually crashes out
with an exception fault). Would using 64bit R help with JAGS? (As far as I
know there's
2011 Sep 10
1
dgamma in jags within r
I define priors in jags within r using a gamma distribution. I would
like to control the shape but I have problems. Any help will be usefull.
From help of dgamma
___________________
The Gamma distribution with parameters shape = a and scale = s has density
f(x)= 1/(s^a Gamma(a)) x^(a-1) e^-(x/s)
and rate=1/scale
From jags user manual
____________________
dgamma(r, mu) has a density of
2011 Apr 04
0
[R-sig-ME] Documentation for the glm module in jags/rjags?
It turns out that when I use GUI (file-change dir) to set the working
directory, R will crash.
If I use setwd() instead, the example runs well.
Regards,
On 4 April 2011 00:17, Wincent <ronggui.huang@gmail.com> wrote:
> OK, I dig into the problem and found that Chinese character in the path
> should be blamed.
> Once the path rename to English only, it works.
>
> Regards,
2010 Aug 02
2
Including a text file (JAGS model) in an R package
Hello,
I can`t figure out how to include a text file for use in an example in the .Rd help files of an R package I am writing.
I want the examples section of one help file to look like this:
\examples{
# Load the JAGS model
mod <- jags.model("model.txt")
}
The function jags.model tries to read in the file model.txt. So far every time I run R CMD check, I get an error message:
2012 Jan 27
0
Error in JAGS, cannot monitor z
Hello.
I am running a state space model (the example from Marc kery's Bayesian
population analysis using WinBUGS )
The code runs fine for the examle as shown in the book.
However I played around and changed the nodes monitored to the latent
variable z I get the following error- even though it is monitored in the
code:
Initializing model
2008 Jun 25
1
dgamma in WinBUGS and JAGS (rjags)
Hello,
In WinBUGS 1.4 manual
(http://www.mrc-bsu.cam.ac.uk/bugs/winbugs/manual14.pdf), the gamma
density is presented as dgamma(r,mu) where r and mu are the shape and
rate parameters, respectively. In JAGS (rjags) manual version 1.0.2,
May 9, 2008 (http://www-fis.iarc.fr/~martyn/software/jags/jags_user_manual.pdf),
on page 26 the gamma density is presented as dgamma(mu,r) instead of
dgamma(r,mu).
2013 Mar 28
3
problem with plots with short example.
i am having problem running my own data. yesterday it was working just fine. today it is not. this is the code i was using as an example to follow. this code ALSO worked just fine yesterday, and is no longer working at all. i suspect it is a problem with either my computer or the software, at this point. if THIS won't even run.... something is wrong.
i can assure you this isn't
2005 Mar 04
5
bayesmix - What is or where can I find JAGS executable?
Hallo!
I want to use the package bayesmix. Trying the
examples I had no success. The reason is, I think:
> haveJAGS()
[1] FALSE
Have read of JAGS executable (I could not find
JAGS.exe in my R directory). What is JAGS? Where can I
find or download it?
Karl
2012 Jan 23
1
Jags problem
Hi, all:
I met "Non-conforming parameters for function %*%" problem, when I run the
Jags model in R.
My model is like this:
model{
for(i in 1:n){
for(j in 1:t[i]){
et[i,j]<-yt[i,j]-beta0+betax*xt[i,j]+betat*t[i,j]
}
for(a in 1:t[i]){
for(b in 1:t[i]){
sigma[i,a,b]<-pow(rho0,abs(t[a]-t[b]))
}
}
phi[i]<-