Thursday, January 23, 2014

Summer courses and workshop in doing Bayesian data analysis

Summer courses and workshop in doing Bayesian data analysis:

7 comments:

  1. In preparation of for the ICPSR course I have been trying to set up rjags. I am using R version 3.1.0 (2014-04-10) -- "Spring Dance" and I get the error message
    > package ‘rjags’ is not available (for R version 3.1.0)
    Will there be an update or should I be running a legacy version or R?
    Thanks in advance.
    Natalie

    ReplyDelete
  2. Sometimes there is a brief lag between packages when R is updated. I just tried and it worked fine (see below), so give it another try. Sorry for the frustration.



    R version 3.1.0 (2014-04-10) -- "Spring Dance"
    Copyright (C) 2014 The R Foundation for Statistical Computing
    Platform: x86_64-w64-mingw32/x64 (64-bit)

    R is free software and comes with ABSOLUTELY NO WARRANTY.
    You are welcome to redistribute it under certain conditions.
    Type 'license()' or 'licence()' for distribution details.

    R is a collaborative project with many contributors.
    Type 'contributors()' for more information and
    'citation()' on how to cite R or R packages in publications.

    Type 'demo()' for some demos, 'help()' for on-line help, or
    'help.start()' for an HTML browser interface to help.
    Type 'q()' to quit R.

    > install.packages("rjags")
    Installing package into ‘C:/Users/John/Documents/R/win-library/3.1’
    (as ‘lib’ is unspecified)
    also installing the dependency ‘coda’

    trying URL 'http://cran.mtu.edu/bin/windows/contrib/3.1/coda_0.16-1.zip'
    Content type 'application/zip' length 197584 bytes (192 Kb)
    opened URL
    downloaded 192 Kb

    trying URL 'http://cran.mtu.edu/bin/windows/contrib/3.1/rjags_3-13.zip'
    Content type 'application/zip' length 516222 bytes (504 Kb)
    opened URL
    downloaded 504 Kb

    package ‘coda’ successfully unpacked and MD5 sums checked
    package ‘rjags’ successfully unpacked and MD5 sums checked

    The downloaded binary packages are in
    C:\Users\John\AppData\Local\Temp\Rtmp4cyeto\downloaded_packages

    ReplyDelete
  3. Thanks very much for the response. I still get the same issue - perhaps it is because I am using a mac?

    ReplyDelete
  4. Regarding package rjags with R3.1.0 on MacOS: I have posted queries on Facebook and the JAGS discussion board. At least one person has not had a problem, although another has. Perhaps you could go to JAGS discussion board and follow up there?

    ReplyDelete
  5. Okay! Thank you.

    ReplyDelete
  6. Just a follow-up... the suggestion from the JAGS discussion board to run R 3.1.0 built for snow leopard rather than mavericks sorted it out. Thanks again for the speedy assistance.

    http://sourceforge.net/p/mcmc-jags/discussion/610037/thread/af42ce2b/

    ReplyDelete
  7. I was having the same problems. "Snow Leopard" install is the fix. Thanks!

    ReplyDelete