You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(11) |
Dec
(20) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
|
Feb
|
Mar
|
Apr
(7) |
May
(24) |
Jun
(15) |
Jul
(5) |
Aug
(21) |
Sep
(85) |
Oct
(9) |
Nov
|
Dec
|
2008 |
Jan
(15) |
Feb
(11) |
Mar
|
Apr
(2) |
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
(29) |
Oct
(47) |
Nov
(1) |
Dec
(1) |
2009 |
Jan
(8) |
Feb
(12) |
Mar
(14) |
Apr
(4) |
May
(1) |
Jun
|
Jul
(5) |
Aug
|
Sep
|
Oct
(11) |
Nov
(18) |
Dec
|
2010 |
Jan
|
Feb
|
Mar
(1) |
Apr
(3) |
May
(24) |
Jun
|
Jul
(1) |
Aug
(7) |
Sep
(5) |
Oct
(3) |
Nov
(4) |
Dec
|
2011 |
Jan
|
Feb
|
Mar
(13) |
Apr
(3) |
May
(2) |
Jun
|
Jul
(1) |
Aug
(24) |
Sep
(3) |
Oct
|
Nov
|
Dec
(29) |
2012 |
Jan
(5) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
(9) |
May
(1) |
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <snt...@us...> - 2012-07-12 02:22:18
|
Revision: 253 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=253&view=rev Author: snthomas99 Date: 2012-07-12 02:22:12 +0000 (Thu, 12 Jul 2012) Log Message: ----------- V3.2.2.1 Modified Paths: -------------- trunk/R2OpenBUGS/DESCRIPTION trunk/R2OpenBUGS/R/bugs.log.R trunk/R2OpenBUGS/R/bugs.sims.R trunk/R2OpenBUGS/inst/NEWS trunk/R2OpenBUGS/man/bugs.Rd trunk/R2OpenBUGS/man/bugs.log.Rd Modified: trunk/R2OpenBUGS/DESCRIPTION =================================================================== --- trunk/R2OpenBUGS/DESCRIPTION 2012-05-01 12:57:10 UTC (rev 252) +++ trunk/R2OpenBUGS/DESCRIPTION 2012-07-12 02:22:12 UTC (rev 253) @@ -1,7 +1,7 @@ Package: R2OpenBUGS Title: Running OpenBUGS from R -Date: 2012-2-04 -Version: 3.2-1.4 +Date: 2012-4-20 +Version: 3.2-2.1 Author: originally written as R2WinBUGS by Andrew Gelman <ge...@st...>; changes and packaged by Sibylle Sturtz <st...@st...> and Uwe Ligges <li...@st...>. @@ -14,6 +14,6 @@ in R. Depends: R (>= 2.11.0) Imports: coda (>= 0.11-0), boot -SystemRequirements: OpenBUGS (>= 3.2.1) +SystemRequirements: OpenBUGS (>= 3.2.2) Maintainer: Neal Thomas <snt...@ya...> License: GPL-2 Modified: trunk/R2OpenBUGS/R/bugs.log.R =================================================================== --- trunk/R2OpenBUGS/R/bugs.log.R 2012-05-01 12:57:10 UTC (rev 252) +++ trunk/R2OpenBUGS/R/bugs.log.R 2012-07-12 02:22:12 UTC (rev 253) @@ -18,7 +18,9 @@ if(n.cols < 1) return(NA) mxlen <- sapply(mx, length) end <- which(mxlen!=n.cols)[1] - 1 - mx <- mx[1:end] + if(!is.na(end)){ ### if output block does not end mx + mx <- mx[1:end] + } cm <- matrix(unlist(mx), ncol=n.cols, byrow=TRUE) # character format if(empty.left.col) cm <- cm[,-1] # empty column col.names <- cm[1, -1] # first column is just "node" Modified: trunk/R2OpenBUGS/R/bugs.sims.R =================================================================== --- trunk/R2OpenBUGS/R/bugs.sims.R 2012-05-01 12:57:10 UTC (rev 252) +++ trunk/R2OpenBUGS/R/bugs.sims.R 2012-07-12 02:22:12 UTC (rev 253) @@ -4,7 +4,7 @@ ## Read the simulations from Bugs into R, format them, and monitor convergence sims.files <- paste ("CODAchain", 1:n.chains, ".txt", sep="") ## read in the names of the parameters and the indices of their samples - index <- read.table("CODAindex.txt", header = FALSE, sep = " ") + index <- read.table("CODAindex.txt", header = FALSE, sep = "") parameter.names <- as.vector(index[, 1]) n.keep <- index[1, 3] - index[1, 2] + 1 n.parameters <- length(parameter.names) Modified: trunk/R2OpenBUGS/inst/NEWS =================================================================== --- trunk/R2OpenBUGS/inst/NEWS 2012-05-01 12:57:10 UTC (rev 252) +++ trunk/R2OpenBUGS/inst/NEWS 2012-07-12 02:22:12 UTC (rev 253) @@ -1,6 +1,11 @@ Changes to R2OpenBUGS: ====================== +Update 3.2-2.1 +- Updated reading of CODA file formats for version 3.2.2 of OpenBUGS, which + now consistently uses tab delimiters. Problems with reading the log + file were corrected as part of the new version of OpenBUGS. + Update 3.2-1.4 - Corrected printing of pD and DIC, which were reversed - Updated documentation to note difference in DIC reporting between Windows and Linux, and the lack of support for the bugs.log function under Linux Modified: trunk/R2OpenBUGS/man/bugs.Rd =================================================================== --- trunk/R2OpenBUGS/man/bugs.Rd 2012-05-01 12:57:10 UTC (rev 252) +++ trunk/R2OpenBUGS/man/bugs.Rd 2012-07-12 02:22:12 UTC (rev 253) @@ -75,11 +75,11 @@ when the script has finished running, otherwise \pkg{OpenBUGS} remains open for further investigation. The debug option is not available for linux execution.} \item{DIC}{logical; if \code{TRUE} (default), compute deviance, pD, - and DIC. For Windows execution, the results are extracted directly + and DIC. The results are extracted directly from the \pkg{OpenBUGS} log, which uses the rule \code{pD = - Dbar - Dhat}. For linux execution, or + Dbar - Dhat}. If extraction fails or if there are less iterations than required for the - adaptive phase, the rule \code{pD=var(deviance) / 2} is + adaptive phase, the rule \code{pD=var(deviance) / 2} is computed in R. See \code{\link{bugs.log}} for more information on extracting results from the log file.} \item{digits}{number of significant digits used for \pkg{OpenBUGS} input, see Modified: trunk/R2OpenBUGS/man/bugs.log.Rd =================================================================== --- trunk/R2OpenBUGS/man/bugs.log.Rd 2012-05-01 12:57:10 UTC (rev 252) +++ trunk/R2OpenBUGS/man/bugs.log.Rd 2012-07-12 02:22:12 UTC (rev 253) @@ -17,8 +17,8 @@ \item{DIC}{A matrix containing the DIC statistics as returned from \pkg{OpenBUGS}.} } -\details{ The function is only supported under Windows execution because the \code{OpenBUGS} log file under Linux execution has a different format. The function -returns \code{NA} for both elements of the list under Linux. +\details{Returns the OpenBUGS summary statistics and DIC extracted directly +from the log file. } \seealso{The main function that generates the log file is \code{\link{bugs}}.} \author{Jouni Kerman} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2012-05-01 12:57:16
|
Revision: 252 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=252&view=rev Author: chris-jackson Date: 2012-05-01 12:57:10 +0000 (Tue, 01 May 2012) Log Message: ----------- Forgot to add modelSetWD() to the NAMESPACE Modified Paths: -------------- trunk/BRugs/NAMESPACE Modified: trunk/BRugs/NAMESPACE =================================================================== --- trunk/BRugs/NAMESPACE 2012-02-15 18:21:15 UTC (rev 251) +++ trunk/BRugs/NAMESPACE 2012-05-01 12:57:10 UTC (rev 252) @@ -10,7 +10,7 @@ modelGenInits, modelInits, modelIteration, modelNames, modelPrecision, modelSaveState, modelSetAP, modelSetIts, modelSetOR, modelSetRN, -modelUpdate, modelEnable, modelDisable, +modelUpdate, modelEnable, modelDisable, modelSetWD, plotAutoC, plotBgr, plotDensity, plotHistory, ranksClear, ranksSet, ranksStats, samplesAutoC, samplesBgr, samplesClear, samplesCoda, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <snt...@us...> - 2012-02-15 18:21:26
|
Revision: 251 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=251&view=rev Author: snthomas99 Date: 2012-02-15 18:21:15 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Update documentation for the bugs function Modified Paths: -------------- trunk/R2OpenBUGS/man/bugs.Rd Modified: trunk/R2OpenBUGS/man/bugs.Rd =================================================================== --- trunk/R2OpenBUGS/man/bugs.Rd 2012-02-08 16:28:59 UTC (rev 250) +++ trunk/R2OpenBUGS/man/bugs.Rd 2012-02-15 18:21:15 UTC (rev 251) @@ -35,8 +35,8 @@ e.g. by the function \code{\link{bugs.inits}}.} \item{parameters.to.save}{character vector of the names of the parameters to save which should be monitored} - \item{model.file}{File containing the model written in \pkg{OpenBUGS} code. - The extension must be \file{.txt}. + \item{model.file}{File containing the model written in \pkg{OpenBUGS} code. The + extension must be \file{.txt}. The default location is given by \code{working.directory}. The old convention allowing model.file to be named \file{.bug} has been eliminated because the new \pkg{OpenBUGS} feature that allows the program image to be saved and later restarted uses the .bug extension for the saved @@ -109,7 +109,7 @@ For other operating systems, the location is guessed by \code{Sys.which("OpenBUGS")}. } \item{working.directory}{sets working directory during execution of - this function; \pkg{OpenBUGS}' in- and output will be stored in this + this function; \pkg{OpenBUGS}' input and output will be stored in this directory; if \code{NULL}, a temporary working directory via \code{\link{tempdir}} is used.} \item{clearWD}{logical; indicating whether the files \file{data.txt}, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Uwe L. <li...@st...> - 2012-02-08 19:32:46
|
Neal worked on it and found the source of the problem (caused by changes in the OpenBUGS output). uwe On 06.02.2012 16:20, Rodney Sparapani wrote: > > Subject:R2OpenBUGS mis-reports pD and DIC > > From: > Timothy Handley<Tim...@NP...> > Date: > Fri, 3 Feb 2012 10:16:46 -0600 > > > I ran a model using R2OpenBUGS. The latter bit of output was: > > b.pcov.sd.u[1] 1.3 0.1 1.2 1.3 1.3 1.4 1.5 > 1 1600 > c.Nzero.pre 142.3 6.3 129.0 138.0 142.0 147.0 154.0 > 1 1800 > deviance 1175.0 24.6 1129.0 1158.0 1174.0 1191.0 1225.0 > 1 1800 > > For each parameter, n.eff is a crude measure of effective sample size, > and Rhat is the potential scale reduction factor (at convergence, > Rhat=1). > > DIC info (using the rule, pD = Dbar-Dhat) > pD = 1400.0 and DIC = 224.9 > DIC is an estimate of expected predictive error (lower deviance is > better). > > The pD value was shocking. This model has several random effects, but even > so, I expected no more than 200 effective parameters. On further thought, I > was concerned to see that mean deviance (1175) plus pD (1400) was not equal > to DIC (224.9). > > So I reran the model with debug=TRUE. Then, from within the OpenBUGS GUI, I > opened the DIC tool, and asked for stats on the node corresponding to the > data. OpenBUGS reported the following: > > > Deviance information > Dbar Dhat DIC pD > ones 1175.0 950.1 1400.0 224.9 > > These numbers are in the range of believability. They also have the > expected relationship, with DIC=Dbar+pD. > > So it seems that R2OpenBUGS reverses the values for pD and DIC. It prints > the value for DIC in the space for pD, and prints the value for pD in the > space for DIC. > > Tim Handley > Research Assistant > Mediterranean Network, NPS > 805-658-5759 (CHIS) > 805-370-2396 (SAMO) > |
From: <snt...@us...> - 2012-02-08 16:29:13
|
Revision: 250 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=250&view=rev Author: snthomas99 Date: 2012-02-08 16:28:59 +0000 (Wed, 08 Feb 2012) Log Message: ----------- minor updates to vignette location and validateInstallOpenBUGS Modified Paths: -------------- trunk/R2OpenBUGS/R/validateInstallOpenBUGS.R Added Paths: ----------- trunk/R2OpenBUGS/vignettes/ trunk/R2OpenBUGS/vignettes/R2OpenBUGS.Rnw trunk/R2OpenBUGS/vignettes/RdRW.sty trunk/R2OpenBUGS/vignettes/Z.cls trunk/R2OpenBUGS/vignettes/benzolsw.pdf trunk/R2OpenBUGS/vignettes/bugs.tex trunk/R2OpenBUGS/vignettes/countssw.pdf trunk/R2OpenBUGS/vignettes/expectedsw.pdf trunk/R2OpenBUGS/vignettes/literatur.bib trunk/R2OpenBUGS/vignettes/literatur.bst trunk/R2OpenBUGS/vignettes/plot.pdf Removed Paths: ------------- trunk/R2OpenBUGS/inst/doc/R2OpenBUGS.Rnw trunk/R2OpenBUGS/inst/doc/RdRW.sty trunk/R2OpenBUGS/inst/doc/Z.cls trunk/R2OpenBUGS/inst/doc/benzolsw.pdf trunk/R2OpenBUGS/inst/doc/bugs.tex trunk/R2OpenBUGS/inst/doc/countssw.pdf trunk/R2OpenBUGS/inst/doc/expectedsw.pdf trunk/R2OpenBUGS/inst/doc/literatur.bib trunk/R2OpenBUGS/inst/doc/literatur.bst trunk/R2OpenBUGS/inst/doc/plot.pdf Modified: trunk/R2OpenBUGS/R/validateInstallOpenBUGS.R =================================================================== --- trunk/R2OpenBUGS/R/validateInstallOpenBUGS.R 2012-02-08 12:57:28 UTC (rev 249) +++ trunk/R2OpenBUGS/R/validateInstallOpenBUGS.R 2012-02-08 16:28:59 UTC (rev 250) @@ -54,7 +54,7 @@ exfiles <- dir(system.file("validateInstallOpenBUGS", package="R2OpenBUGS"), pattern=test.pattern[i], full.names=TRUE) ok <- file.copy(exfiles, tempdir()) fit <- round(bugs(data=test.datafile[i], inits=test.inits[i], - para=test.params[[test.models[i]]],model.file=test.modelfile[i], + parameters.to.save=test.params[[test.models[i]]],model.file=test.modelfile[i], n.burnin=5000, n.iter=20000, n.thin=1, n.chains=1, DIC=FALSE, working.directory=tempdir(), OpenBUGS.pgm=OpenBUGS.pgm)$summary, 5) Deleted: trunk/R2OpenBUGS/inst/doc/R2OpenBUGS.Rnw =================================================================== --- trunk/R2OpenBUGS/inst/doc/R2OpenBUGS.Rnw 2012-02-08 12:57:28 UTC (rev 249) +++ trunk/R2OpenBUGS/inst/doc/R2OpenBUGS.Rnw 2012-02-08 16:28:59 UTC (rev 250) @@ -1,495 +0,0 @@ -%\VignetteIndexEntry{R2OpenBUGS} -\documentclass{Z} -\usepackage{RdRW,thumbpdf} -\newcommand{\WinBUGS}{{\proglang{WinBUGS}}{}} -\newcommand{\OpenBUGS}{{\proglang{OpenBUGS}}{}} -\newcommand{\RW}{{\pkg{R2WinBUGS}}{}} -\newcommand{\RO}{{\pkg{R2OpenBUGS}}{}} -\renewcommand{\R}{{\proglang{R}}{}} -\setlength{\textheight}{23.5cm} - -\title{\RO{}:\protect\linebreak A Package for Running \OpenBUGS{} from \R{}} -\author{Sibylle Sturtz\thanks{\email{st...@st...}}\\Fachbereich Statistik\\Universit\"at Dortmund\\Germany - \And - Uwe Ligges\thanks{\email{li...@st...}}\\Fachbereich Statistik\\Universit\"at Dortmund\\Germany - \And - Andrew Gelman\thanks{\email{ge...@st...}}\\Department of Statistics\\Columbia University\\USA -} -\Plainauthor{Sibylle Sturtz, Uwe Ligges, Andrew Gelman} -\Plaintitle{R2OpenBUGS: A Package for Running OpenBUGS from R} - -\Abstract{ -The \RO{} package provides convenient functions to call \OpenBUGS{} from \R{}. It -automatically writes the data and scripts in a format readable by \OpenBUGS{} for processing in batch mode, which -is possible since version 1.4. After the \OpenBUGS{} process has finished, it is possible either to read the -resulting data into \R{} by the package itself---which gives a compact graphical summary of inference and -convergence diagnostics---or to use the facilities of the \pkg{coda} package for further analyses of the -output. Examples are given to demonstrate the usage of this package. -} - -\Keywords{\R{}, \OpenBUGS{}, interface, MCMC} -\Plainkeywords{R, OpenBUGS, interface, MCMC} - -\begin{document} -An earlier version of this vignette has been published by the Journal of Statistical Software:\\ -Sturtz S, Ligges U, Gelman A (2005): -``\RW{}: A Package for Running \WinBUGS{} from \R{}.'' -{\em Journal of Statistical Software}, 12(3), 1--16. -\RO{} was adapted from \RW{} by Neal Thomas. - - -\section{Introduction}\label{Introduction} -The usage of Markov chain Monte Carlo (MCMC) methods became very popular within the last decade. \OpenBUGS{} -\citep[\textbf{B}ayesian inference \textbf{U}sing \textbf{G}ibbs \textbf{S}ampling, ][] -{Spiegelhalter;Thomas;Best:2003} is a popular software for analyzing complex statistical models using MCMC -methods. This software uses Gibbs sampling \citep{Geman;Geman:1984,Gelfand;Smith:1990,Casella;George:1992} and the -Metropolis algorithm \citep{Metropolis;Rosenbluth;Rosenbluth;Teller;Teller:1953} -to generate a Markov chain by sampling from full conditional -distributions. -The \OpenBUGS{} software is available for free -at \url{http://www.OpenBUGS.info}. -An introduction to MCMC methods is given in \cite{Gilks;Richardson;Spiegelhalter:1996}. - -Using \OpenBUGS{}, the user must specify the model to run, and to load data and initial values for a specified -number of Markov chains. Then it is possible to run the Markov chain(s) and to save the results for the parameters -the user is interested in. Summary statistics of these data, convergence diagnostics, kernel estimates -etc.\ are available as well. -Nevertheless, some users of this software might be interested in saving the output and reading it into \R{} -\citep{RCore:2004} for further analyses. -\OpenBUGS{} comes with the ability to run the software in batch mode using scripts. - -The \RO{} package makes use of this feature and provides the tools to call \OpenBUGS{} -directly after data manipulation in \R{}. Furthermore, it is possible to -work with the results after importing them back into \R{} again, for example to create posterior predictive simulations or, more generally, graphical displays of data and posterior simulations \citep{gelman:2004}. -Embedding in R can also be useful for frequently changed data or processing a bunch of data sets, -because it is much more convenient to use some \R{} functions (possibly within a loop) -rather than using ``copy \& paste'' to update data in \OpenBUGS{} each time; however difficulties have been encountered in this area because both \R{} and \OpenBUGS{} can lock up RAM in the Windows operating system. - -\R{} is a ``language for data analysis and graphics'' and an open source and -freely available statistical software package implementing that language, see \url{http://www.R-project.org/}. -Historically, \R{} is an implementation of the award-winning \proglang{S} -language and system \citep{becker:1984r,becker:1988r,chambers:1992,chambers:1998}. -\R{} and \RO{} are available from \emph{CRAN} (Comprehensive \R{} Archive Network), -i.e., \url{http://CRAN.R-Project.org} or one of its mirrors. -\RO{} could be ported to the commercial \proglang{S} implementation -\textsc{S-Plus}. Minor adaptions would be needed since \textsc{S-Plus} -lacks some of \R{}'s functions and capabilities. -If an internet connection is available, \RO{} can be installed by typing -\verb+install.packages("R2OpenBUGS")+ at the \R{} command prompt. -Do not forget to load the package with \verb+library("R2OpenBUGS")+. - -The package \pkg{coda} by \cite{Plummer;Best;Cowles;Vines:2004} is very useful for the analysis of \OpenBUGS{}' -output, the reader might want to install this package as well. The CRAN package \pkg{boa} (Bayesian Output -Analysis Program) by \cite{Smith:2004} has similar aims. -\proglang{JAGS} (Just Another Gibbs Sampler) -by \cite{Plummer:2003} is a program for analysis of Bayesian hierarchical models using Gibbs sampling that aims for -the same functionality as classic \proglang{BUGS}. \proglang{JAGS} is developed to work closely together with \R{} and -the \pkg{coda} package. - -%% Revision 2005-01-10 end - -In this paper, we give two examples, involving educational testing experiments in schools (cf.~Section~\ref{School}), -and incidence of childhood leukaemia depending on benzene emissions (cf.~Section~\ref{Leukaemia}). Details on the -functions of \RO{} are given in Section~\ref{Programming}. These functions automatically write the data and a -script in a format readable by \OpenBUGS{} for processing in batch mode, and call \OpenBUGS{} from \R{}. After the -\OpenBUGS{} process has finished, it is possible either to read the resulting data into \R{} by the package itself -or to use the facilities of the \pkg{coda} package for further analyses of the output. In Section~\ref{Example2}, -we demonstrate how to apply the functions provided by \RO{} on the examples' data, and how to analyze the output -both with package \pkg{coda} and with \RO{}'s methods to \verb+plot()+ and \verb+print()+ the output. - - -\section{Examples}\label{Examples} -In this Section, we introduce two examples which will be continued in Section~\ref{Example2}. - -\subsection{Schools data}\label{School} -The Scholastic Aptitude Test (SAT) measures the aptitude of high-schoolers in order to help colleges to make -admissions decisions. It is divided into two parts, verbal (SAT-V) and mathematical (SAT-M). -Our data comes from the SAT-V (Scholastic Aptitude Test-Verbal) on eight different high schools, from an experiment conducted in the late 1970s. -SAT-V is a standard multiple choice test administered by the Educational Testing Service. -This Service was interested in the effects of coaching programs for each of the selected schools. - -The study included coached and uncoached pupils, about sixty in each of the eight different schools; see -\cite{Rubin:1981}. All of them had already taken the PSAT (Preliminary SAT) which results were used as covariates. -%Even if the test is constructed to be resistant to short-term -%efforts directed specifically toward improving test performance, each of the schools is successful at increasing -%SAT scores. -For each school, the estimated treatment effect and the standard error of the effect estimate are given. -These are calculated by an analysis of covariance adjustment appropriate for a completely randomized experiment -\citep{Rubin:1981}. This example was analyzed using a hierarchical normal model in \cite{Rubin:1981} and -\citeauthor{Gelman:2003} (\citeyear{Gelman:2003}, Section 5.5). - -\subsection{Leukaemia registration data}\label{Leukaemia} -Spatial data usually arises on different, non-nesting spatial scales. One example is childhood leukaemia -registration data analyzed by \cite{Best;Cockings;Bennett;Wakefield;Elliot:2001} -using ecologic regression. Data are given for Greater London bounded by the M25 orbital motorway. -%% Revision 2005-01-10 start -The data are not available as an example in \RO{} but we use the example here -to illustrate -alternative calls to the \verb+bugs()+ function and output analysis using the \pkg{coda} package. -%% Revision 2005-01-10 end - -The observed number of leukaemia cases among children under 15 years old is given at ward level. Census wards are -administrative areas containing approximately 5000 to 10\,000 people. Central London is divided into 873 wards. The -number of incident cases of leukaemia in children is available from 1985 until 1996 from the Office of National -Statistics and the Thames Cancer Registry. A plot of these numbers is given in Figure~\ref{observed}. - -\begin{figure} -\begin{center} -\includegraphics[width=0.85\textwidth]{countssw} -\caption{\label{observed}Observed number of cases of childhood leukaemia in 1985--1996} -\end{center} -\end{figure} - -Additionally, the number of expected cases (cf.~Fig.~\ref{expected}) is calculated on the same -resolution using population numbers for different age-sex-strata and the national leukaemia -rate for the corresponding strata, for details see \cite{Best;Cockings;Bennett;Wakefield;Elliot:2001}. - -\begin{figure} -\begin{center} -\includegraphics[width=0.85\textwidth]{expectedsw} -\caption{\label{expected}Expected number of cases of childhood leukaemia in 1985--1996}%, as obtained from a simple demographic model} -\end{center} -\end{figure} - -It is assumed that benzene emissions have an effect on the incidence rate of leukaemia. Benzene emission rates are -available in tonnes per year from an atmospheric emissions inventory for London -\citep{Buckingham;Clewley;Hutchinson;Sadler;Shah:1997} produced by the London Research Centre. They are provided -at 1km $\times$ 1km grid cells, giving 2132 grid cells in total. -Their spatial distribution is shown in Figure~\ref{benzene}. - -\begin{figure} -\begin{center} -\includegraphics[width=0.9\textwidth]{benzolsw} -\caption{\label{benzene}Benzene emissions in tonnes per year} -\end{center} -\end{figure} - -For further details on the data see \cite{Best;Cockings;Bennett;Wakefield;Elliot:2001}. - -We model these data by Poisson-Gamma models introduced by \cite{Best;Ickstadt;Wolpert:2000} using \OpenBUGS{}. -A linking matrix containing information which grid cell belongs to which ward -and to which amount is required. This matrix is calculated using \R{}. -Unfortunately, \OpenBUGS{} does not support a list format such as directly produced by \R{}. -Therefore, the data must be provided as a matrix with 2132 rows and 873 columns (or vice versa). -Most of the entries of this matrix are zeroes, but using \verb+dump()+ to export it from \R{} -yields in a file size of 14.2~MB. -Unfortunately, opening a file of such size really slows \OpenBUGS{} down, -and it was not even possible on some of our PCs. -Importing data written by our \RO{} package does not make any problems using the batch mode, -probably due to memory management issues in \OpenBUGS{}. - - -\section{Implementation}\label{Programming} -The implementation of the \RO{} package is straightforward. -The ``main'' function \verb+bugs()+ is intended to be called by the user. -In principle, it is a wrapper for several other functions called therein step by step as follows: -\begin{enumerate} - \item \verb+bugs.data.inits()+ writes the data files \file{data.txt}, and \file{inits1.txt}, \file{inits2.txt}, ... - into the working directory. These files will be used by \OpenBUGS{} during batch processing. - - In particular, input for \OpenBUGS{} must not exceed a certain number of digits. - Moreover, it needs an \verb+E+ instead of an \verb+e+ in scientific notation. - Scientific notation is particularly desirable because of the ``number of digits'' limitation. - The default (\verb+digits = 5+) is to, e.g., reformat the number \verb+123456.789+ to \verb@1.23457E+05@. - \item \verb+bugs.script()+ writes the file \file{script.txt} that is used by \OpenBUGS{} for batch processing. - \item \verb+bugs.run()+ updates the lengths of the adaptive phases in the \WinBUGS{} registry - (using a function \verb+bugs.update.settings()+), - calls \WinBUGS{}, and runs it in batch mode with \file{script.txt}. - \item \verb+bugs.sims()+ is only called if the argument \verb+codaPkg+ has been set to \verb+FALSE+ (the default). - Otherwise \verb+bugs()+ returns the filenames of stored data. These can, for example, - be imported by package \pkg{coda} (see the example in Section~\ref{Leukaemia2}, page~\pageref{codaexample}), - which provides functions for convergence diagnostics, - calculation of Monte Carlo estimates, trace plots, and so forth. - - The function \verb+bugs.sims()+ reads simulations from \OpenBUGS{} into \R{} (not necessarily called by \verb+bugs()+ - itself), formats them, - monitors convergence, performs convergence checks, and computes medians and quantiles. - It also prepares the output for \verb+bugs()+ itself. -\end{enumerate} -These functions are not intended to be called by the user directly. -Arguments are passed from \verb+bugs()+ to the other functions, if appropriate. -A shortened help file of \verb+bugs()+ listing all arguments is given in Appendix~\ref{Doc}; -for the full version type \verb+?bugs+ in \R{} after having installed and loaded the package \RO{} -(see Section~\ref{Introduction}). - -%\newpage -As known from \OpenBUGS{}, one must specify the \verb+data+ in form of a list, with list names equal to the names -of data in the corresponding \OpenBUGS{} model. Alternatively, it is possible to specify a vector or list of names -(of mode \verb+character+). In that case objects of that names are looked for in the environment in which -\verb+bugs()+ has been called (usually that is the user's Workspace, \verb+.GlobalEnv+). -%% Revision 2005-01-10 start -If data have already been written in a file called \file{data.txt} to the working directory, -it is possible to specify \verb+data = "data.txt"+. -%% Revision 2005-01-10 end -One will usually want to supply initial values. -This can be done either in the form of a function \verb+inits()+ that creates these values, so that -different chains can be automatically initialized at different points (see Section \ref{School2}), or by specifying them -directly (see Section \ref{Leukaemia2}). -If \verb+inits()+ is not specified, -\verb+bugs()+ just uses the starting values created by \OpenBUGS{}; but in practice \OpenBUGS{} can crash when -reasonable initial values are not specified, and so we recommend constructing a simple \verb+inits()+ function to -simulate reasonable starting points \cite[Section C.2]{Gelman:2003}. It is also necessary to specify which -parameters should be saved for monitoring by specifying \verb+parameters.to.save+. - -The user might also want to change the defaults for the length of the burn-in (\verb+n.burnin+, which defaults to half the length of the chain) -period for every MCMC run and the number of iterations (\verb+n.iter+, default value 3) -that are used to calculate Monte Carlo estimates. -%SS: Achtung: n.iter=n.burn.in + length of stored chain! -The specification of a thinning parameter (\verb+n.thin+) is possible as well; this is useful when the number of parameters is large, to keep the saved output to a reasonably-sized R object. - -By setting the argument \verb+debug = TRUE+, -\OpenBUGS{} remains open after the run. -This way it is possible to find errors in the code or the data structure, -or even to work with that software as in a usual run. This feature is not -available with Linux execution. - -It is possible to run one or more Markov chains. -The number of chains (\verb+n.chains+) must be specified together with the chains' initial values (\verb+inits+). -If more than one Markov chain is requested and \verb+codaPkg+ is set to \verb+FALSE+, the convergence diagnostic -$\hat{R}$ \citep{Brooks;Gelman:1998} is calculated by \verb+bugs.sims()+ for each of the saved parameters. - -%% Revision 2005-01-10 start -Since the communication between \OpenBUGS{} and \R{} is based on files, -rather huge files will be saved in the working directory by the \verb+bugs()+ call, -either files to be read in by \verb+bugs()+ itself, or by the \pkg{coda} package. -The user might want to delete those files after the desired contents has been imported into \R{}, -and save those objects, e.g., as compressed \R{} data files. -%% Revision 2005-01-10 end - -The function \verb+bugs()+ returns a rather complex object of class \verb+bugs+, -if called with argument \verb+codaPkg = FALSE+. -In order to look at the structure of such an object, type \verb+str(objectname)+. -For convenience, \RO{} provides methods corresponding to class \verb+bugs+ for -the generic functions \verb+print()+ and \verb+plot()+. - -So that user will not be overwhelmed with information; summaries of the output are provided by the -\verb+print()+ method. That is, some parameters of the \verb+bugs()+ call are summarized, and mean, -standard deviation, several quantiles of the parameters and convergence diagnostics based on \cite{Gelman;Rubin:1992} -are printed. See the example in -Section~\ref{School2}, page~\pageref{schoolssim}, for a typical output. As with \cite{Spiegelhalter;Best;Carlin;vdLinde:2002}, -%\pagebreak - the DIC computed by \verb+bugs.sims()+ is defined as the posterior mean -of the deviance plus $p_D$, the estimated effective number of parameters in the posterior distribution. We define -$p_D$ as half the posterior variance of the deviance and estimate it as half the average of the within-chain -variances of the deviance.\footnote{In contrast, \cite{Spiegelhalter;Best;Carlin;vdLinde:2002}, - and OpenBUGS, define $p_D$ as the -posterior mean of the deviance evaluated at the posterior mean of the parameter values. We cannot use that -definition because the deviance function is not available to our program, which calls \OpenBUGS{} from the -``outside''. Both definitions of $p_D$---ours and that introduced by \cite{Spiegelhalter;Best;Carlin;vdLinde:2002}---can be -derived from the asymptotic $\chi^2$ distribution of the deviance relative to its minimum \citep[Section 6.7]{Gelman:2003}. -We make no claim that our measure of $p_D$ is superior to that of \cite{Spiegelhalter;Best;Carlin;vdLinde:2002}; -we choose this measure purely because it is computationally possible given what is available to us from the \OpenBUGS{} output.} - - -The \verb+plot()+ for objects of class \verb+bugs+ -provides information condensed in some plots conveniently arranged within the same graphics device. -For an example, see Figure~\ref{plot} in Section~\ref{School2}. It is intended to adapt this function to work with MCMC output in general, even if obtained from software other than OpenBUGS. - - - -\section{Examples continued}\label{Example2} -The Examples introduced in Section~\ref{Example2} are continued in this Section. -We apply the functions provided by \RO{} -to the examples' data and analyze the output. - -\subsection{Schools data}\label{School2} -Schools example data (see Section~\ref{School}) are available with the \RO{} package: -\begin{Code} - > data(schools) - > schools - school estimate sd - 1 A 28.39 14.9 - 2 B 7.94 10.2 - 3 C -2.75 16.3 - 4 D 6.82 11.0 - 5 E -0.64 9.4 - 6 F 0.63 11.4 - 7 G 18.01 10.4 - 8 H 12.16 17.6 -\end{Code} -For modeling these data, we use a hierarchical model as proposed by \citeauthor{Gelman:2003} (\citeyear{Gelman:2003}, Section 5.5). -We assume a normal distribution for the observed estimate for each school with -mean \verb+theta+ and inverse-variance \verb+tau.y+. -The inverse-variance is given as $1/\verb+sigma.y+^{2}$ and its prior distribution is uniform on (0,1000). For the mean -\verb+theta+, we employ another normal distribution with mean \verb+mu.theta+ and inverse-variance \verb+tau.theta+. For -their prior distributions, see the following \OpenBUGS{} code: - - -\begin{Code} - model { - for (j in 1:J) - { - y[j] ~ dnorm (theta[j], tau.y[j]) - theta[j] ~ dnorm (mu.theta, tau.theta) - tau.y[j] <- pow(sigma.y[j], -2) - } - mu.theta ~ dnorm (0.0, 1.0E-6) - tau.theta <- pow(sigma.theta, -2) - sigma.theta ~ dunif (0, 1000) - } -\end{Code} -This model must be stored in a separate file, e.g.~\file{schools.bug}\footnote{Emacs Speaks Statistics (ESS) -by \cite{rossini04}, a package available with Gnu Emacs \citep{stallmann99}, -recognizes and properly formats Bugs model files that have the .bug extension.}, -in an appropriate directory, say \path{c:/schools/}. -In \R{} the user must prepare the data inputs the \verb+bugs()+ function needs. -This can be a list containing the name of each data vector, e.g. -\begin{Code} - > J <- nrow(schools) - > y <- schools$estimate - > sigma.y <- schools$sd - > data <- list ("J", "y", "sigma.y") -\end{Code} -Using these data and the model file, we can run an MCMC simulation to get estimates for \verb+theta+, -\verb+mu.theta+ and \verb+sigma.theta+. Before running, the user must decide how many chains to be run -(\verb+n.chain = 3+) for how many iterations (\verb+n.iter = 1000+). -If the length of burn-in is not specified, \verb+n.burnin = floor(n.iter/2)+ is used, that is, 500 in this example. -Additionally, the user must specify initial values for the chains, for example by writing a function. This can be done by -\begin{Code} - > inits <- function(){ - + list(theta = rnorm(J, 0, 100), mu.theta = rnorm(1, 0, 100), - + sigma.theta = runif(1, 0, 100)) - + } -\end{Code} -Now, the user can start the MCMC simulation by typing -\begin{Code} - > schools.sim <- bugs(data, inits, model.file = "c:/schools/schools.bug", - + parameters = c("theta", "mu.theta", "sigma.theta"), - + n.chains = 3, n.iter = 1000) -\end{Code} -in \R{}.\label{schoolssim} -For other available arguments, see Appendix \ref{Doc}. - -The results in objects \verb+schools.sim+ can conveniently be printed by \verb+print(schools.sim)+. -The generic function \verb+print()+ calls the print method for an object of class \verb+bugs+ -provided by \RO{}. -For this example, you will get something like - -\small -\begin{Code} - > print(schools.sim) - Inference for Bugs model at "c:/schools/schools.bug" - 3 chains, each with 1000 iterations (first 500 discarded) - n.sims = 1500 iterations saved - mean sd 2.5% 25% 50% 75% 97.5% Rhat n.eff - theta[1] 11.1 9.1 -3.0 5.0 10.0 16.0 31.8 1.1 39 - theta[2] 7.6 6.6 -4.7 3.3 7.8 11.6 21.1 1.1 42 - theta[3] 5.7 8.4 -12.5 0.6 6.1 10.8 21.8 1.0 150 - theta[4] 7.1 7.0 -6.6 2.7 7.2 11.5 21.0 1.1 42 - theta[5] 5.1 6.8 -9.5 0.7 5.2 9.7 18.1 1.0 83 - theta[6] 5.7 7.3 -9.7 1.0 6.2 10.2 20.0 1.0 56 - theta[7] 10.4 7.3 -2.1 5.3 9.8 15.3 25.5 1.1 27 - theta[8] 8.3 8.4 -6.6 2.8 8.1 12.7 26.2 1.0 64 - mu.theta 7.6 5.9 -3.0 3.7 8.0 11.0 19.5 1.1 35 - sigma.theta 6.7 5.6 0.3 2.8 5.1 9.2 21.2 1.1 46 - deviance 60.8 2.5 57.0 59.1 60.2 62.1 66.6 1.0 170 - pD = 3 and DIC = 63.8 (using the rule, pD = var(deviance)/2) - - For each parameter, n.eff is a crude measure of effective sample size, - and Rhat is the potential scale reduction factor (at convergence, Rhat=1). - DIC is an estimate of expected predictive error (lower deviance is better). -\end{Code} -\normalsize -Additionally, the user can generate a plot of the results by typing \verb+plot(schools.sim)+. -The resulting plot is given in Figure~\ref{plot}. -\begin{figure}[t] -\begin{center} -\fbox{ -\includegraphics[width=0.9\textwidth]{plot} -} \caption{\label{plot}Plot produced by \RO{} package for the schools example. } -\end{center} -\end{figure} -In this plot, the left column shows a quick -summary of inference and convergence ($\widehat{R}$ is close to 1.0 for all parameters, indicating good mixing of -the three chains and thus approximate convergence); and the right column shows inferences for each set of -parameters. As can be seen in the right column, \RO{} uses the parameter names in \OpenBUGS{} to structure the -output into scalar, vector, and arrays of parameters, in addition to storing the parameters as a long vector. - -For the interpretation of these results see \citeauthor{Gelman:2003} (\citeyear{Gelman:2003}, Section 5.5). - -\subsection{Leukaemia registration data}\label{Leukaemia2} -The leukaemia registration data (see Section \ref{Leukaemia}) are used to show data modeling and output reading -into \R{} using the \pkg{coda} package. A simple model for these data looks as follows: -\begin{Code} -model{ - beta.0 ~ dgamma(a.0, tau.0) - beta.benz ~ dgamma(a.benz, tau.benz) - a.0 <- 0.575 - tau.0 <- a.0*2 - a.benz <- 0.575 - tau.benz <- a.benz*2 -\end{Code} -\clearpage -\begin{Code} - for (i in 1:I) - { - count[i] ~ dpois(lambda[i]) - lambda[i] <- p[i]*expect[i] - for (j in 1:J) - { - prop[j,i] <- gamma[j,i]*(benz[j] - benzbar) - } - p[i]<- beta.0 + beta.benz*sum(prop[,i]) - } - } -\end{Code} -Here \verb+count+ denotes the number of observed incidences of childhood leukaemia in ward~\verb+i+. These are -assumed to be Poisson distributed with mean \verb+lambda+ depending on the number of expected cases \verb+expect+ -in ward \verb+i+ and an area-specific risk rate \verb+p+. For calculation of this area specific risk rate we use -an intercept \verb+beta.0+ and a term depending on the weighted sum of benzene emissions \verb+benz+ in each grid -cell \verb+j+. The weights are chosen proportional to the amount of area that ward \verb+i+ and grid cell \verb+j+ have -in common. - -In \R{} we can define all these data and then initialize the model. The data needed for this example are -\begin{description} -\item[\tt{benzbar}:] arithmetic mean of all benzene values, -\item[\tt{benz}:] a vector containing benzene emissions of all 2132 grid cells, -\item[\tt{expect}:] expected number of cases of childhood leukaemia in each of the 873 wards, -\item[\tt{count}:] observed number of childhood leukaemia in these wards, -\item[\tt{gamma}:] a $2132\times 873$ matrix containing the amount of area each grid cell and each ward have in common, -\item[\tt{J}:] total number of grid cells, i.e.~2132, and -\item[\tt{I}:] total number of ward cells, i.e.~873. -\end{description} -The parameters we want to store are regression coefficients \verb+beta.0+ and \verb+beta.benz+ as well as -\verb+p+, the area specific relative risk compared to the reference rate. This reference rate was used to -calculate the expected number of cases in each ward. - -Since we want to use the \pkg{coda} package for reading the data into \OpenBUGS{}, we specify \verb+codaPkg = TRUE+ -in the \verb+bugs()+ call: -\begin{Code} - > data <- list(benzbar = mean(benz), benz = benz, expect = expect, - + count = count, gamma = gamma, J = J, I = I) - > parameters <- c("beta.0", "beta.benz", "p") - > inits1 <- list(beta.0 = 1, beta.benz = 1) - > inits2 <- list(beta.0 = 0.5, beta.benz = 0.5) - > inits <- list(inits1, inits2) - > model <- bugs(data, inits, parameters, model.file = "c:/model.bug", - + n.chains = 2, n.iter = 8000, n.burnin = 5000, n.thin = 1, - + codaPkg = TRUE ) -\end{Code} - -\clearpage -Starting with, e.g.,\label{codaexample} -\begin{Code} - > library("coda") - > codaobject <- read.bugs(model) - > plot(codaobject) -\end{Code} -it is now possible to use the \pkg{coda} package for output analyses. - - -\section*{Acknowledgments} -The work of Uwe Ligges has been supported by the Deutsche Forschungsgemeinschaft, -Sonderforschungsbereich 475. -The work of Andrew Gelman has been supported by the U.S. National Science Foundation. - -\bibliography{literatur} - -\clearpage -\begin{appendix} -\section[Help page for the function bugs()]{Help page for the function \code{bugs()}\label{Doc}} -\small -This help page has been shortened. -\input{bugs} -\end{appendix} -\end{document} Deleted: trunk/R2OpenBUGS/inst/doc/RdRW.sty =================================================================== --- trunk/R2OpenBUGS/inst/doc/RdRW.sty 2012-02-08 12:57:28 UTC (rev 249) +++ trunk/R2OpenBUGS/inst/doc/RdRW.sty 2012-02-08 16:28:59 UTC (rev 250) @@ -1,363 +0,0 @@ -%%% Rd.sty ... Style for printing the R manual -%%% -%%% Modified 1998/01/05 by Fri...@ci... -%%% Modified 1998/07/07 by Martin Maechler -%%% Modified 1999/11/20 by Brian Ripley -%%% Modified 1999/12/26 by Kurt Hornik -%%% and so on. - -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{Rd}{} - -\RequirePackage{ifthen} -\newboolean{Rd@has@ae} -\newboolean{Rd@use@ae} -\newboolean{Rd@use@hyper} -\newboolean{Rd@has@times} -\newboolean{Rd@use@times} -\newboolean{Rd@use@cm-super} -\newboolean{Rd@has@lm} -\newboolean{Rd@use@lm} -\DeclareOption{ae}{\setboolean{Rd@use@ae}{true}} -\DeclareOption{hyper}{\setboolean{Rd@use@hyper}{true}} -\DeclareOption{times}{\setboolean{Rd@use@times}{true}} -\DeclareOption{lm}{\setboolean{Rd@use@lm}{true}} -\DeclareOption{cm-super}{\setboolean{Rd@use@cm-super}{true}} -\ProcessOptions -\RequirePackage{longtable} -\setcounter{LTchunksize}{250} -\ifthenelse{\boolean{Rd@use@hyper}} -{\IfFileExists{hyperref.sty}{}{\setboolean{Rd@use@hyper}{false} - \message{package hyperref not found}}} -{} - -\RequirePackage{bm} % standard boldsymbol -\RequirePackage{alltt} % {verbatim} allowing \.. -\RequirePackage{verbatim} % small example code -\RequirePackage{url} % set urls - -%% See 'upquote.sty' for details. -%% We use \pkg{verbatim} for our ExampleCode environment, which in its -%% \verbatim@font has an explicit \let\do\do@noligs\verbatim@nolig@list -%% rather than (the identical) \@noligs from the LaTeX2e kernel. -%% Hence, we add to \verbatim@font ... suggestion by Bernd Raichle -%% <ra...@In...>. -\RequirePackage{upquote} -\g@addto@macro\verbatim@font\@noligs - -%% \addtolength{\textheight}{12mm} -%% \addtolength{\topmargin}{-9mm} % still fits on US paper -%% \addtolength{\textwidth}{24mm} % still fits on US paper -%% \setlength{\oddsidemargin}{10mm} -%% \setlength{\evensidemargin}{\oddsidemargin} - -\newenvironment{display}[0]% - {\begin{list}{}{\setlength{\leftmargin}{30pt}}\item}% - {\end{list}} -\newcommand{\HTML}{{\normalfont\textsc{html}}} -\newcommand{\R}{{\normalfont\textsf{R}}{}} -\newcommand{\Rdash}{-} - -\def\href#1#2{\special{html:<a href="#1">}{#2}\special{html:</a>}} - -\newcommand{\vneed}[1]{% - \penalty-1000\vskip#1 plus 10pt minus #1\penalty-1000\vspace{-#1}} - -\newcommand{\Rdcontents}[1]{% modified \tableofcontents -- not \chapter -\section*{{#1}\@mkboth{\MakeUppercase#1}{\MakeUppercase#1}} - \@starttoc{toc}} - -\newcommand{\Header}[2]{% - \vneed{1ex} - \markboth{#1}{#1} - \noindent - \nopagebreak - \begin{center} - \ifthenelse{\boolean{Rd@use@hyper}}% - {\def\@currentHref{page.\thepage} - \hypertarget{Rfn.#1}{\index{#1@\texttt{#1}}}% - \myaddcontentsline{toc}{subsection}{#1}% - \pdfbookmark[1]{#1}{Rfn.#1}} - {\addcontentsline{toc}{subsection}{#1} - \index{#1@\texttt{#1}|textbf}} - \hrule - \parbox{0.95\textwidth}{% - \begin{ldescription}[1.5in] - \item[\texttt{#1}] \emph{#2} - \end{ldescription}} - \hrule - \end{center} - \nopagebreak} -% -% -% -% \alias{<alias>}{<header>} -\ifthenelse{\boolean{Rd@use@hyper}} -{\newcommand{\alias}[2]{\hypertarget{Rfn.#1}{\index{#1@\texttt{#1} \textit{(\texttt{#2})}}}}} -{\newcommand{\alias}[2]{\index{#1@\texttt{#1} \textit{(\texttt{#2})}}}} -\ifthenelse{\boolean{Rd@use@hyper}} -{\newcommand{\methalias}[2]{\hypertarget{Rfn.#1}{\relax}}} -{\newcommand{\methalias}[2]{}} -% \keyword{<topic>}{<header>} -\newcommand{\keyword}[2]{\index{$*$Topic{\large\ \textbf{#1}}!#2@\texttt{#2}}} -% -\newcommand{\Itemize}[1]{\begin{itemize}{#1}\end{itemize}} -\newcommand{\Enumerate}[1]{\begin{enumerate}{#1}\end{enumerate}} -\newcommand{\describe}[1]{\begin{description}{#1}\end{description}} - -\newcommand{\Tabular}[2]{% - \par\begin{longtable}{#1} - #2 - \end{longtable}} - -\newlength{\ldescriptionwidth} -\newcommand{\ldescriptionlabel}[1]{% - \settowidth{\ldescriptionwidth}{{#1}}% - \ifdim\ldescriptionwidth>\labelwidth - {\parbox[b]{\labelwidth}% - {\makebox[0pt][l]{#1}\\[1pt]\makebox{}}}% - \else - \makebox[\labelwidth][l]{{#1}}% - \fi - \hfil\relax} -\newenvironment{ldescription}[1][1in]% - {\begin{list}{}% - {\setlength{\labelwidth}{#1}% - \setlength{\leftmargin}{\labelwidth}% - \addtolength{\leftmargin}{\labelsep}% - \renewcommand{\makelabel}{\ldescriptionlabel}}}% - {\end{list}} - -\newenvironment{Rdsection}[1]{% - \ifx\@empty#1\else\subsubsection*{#1}\fi - \begin{list}{}{\setlength{\leftmargin}{0.25in}}\item} - {\end{list}} - -\newenvironment{Arguments}{% - \begin{Rdsection}{Arguments}}{\end{Rdsection}} -\newenvironment{Author}{% - \begin{Rdsection}{Author(s)}}{\end{Rdsection}} -\newenvironment{Description}{% - \begin{Rdsection}{Description}}{\end{Rdsection}} -\newenvironment{Details}{% - \begin{Rdsection}{Details}}{\end{Rdsection}} -\newenvironment{Examples}{% - \begin{Rdsection}{Examples}}{\end{Rdsection}} -\newenvironment{Note}{% - \begin{Rdsection}{Note}}{\end{Rdsection}} -\newenvironment{References}{% - \begin{Rdsection}{References}}{\end{Rdsection}} -\newenvironment{SeeAlso}{% - \begin{Rdsection}{See Also}}{\end{Rdsection}} -\newenvironment{Format}{% - \begin{Rdsection}{Format}}{\end{Rdsection}} -\newenvironment{Source}{% - \begin{Rdsection}{Source}}{\end{Rdsection}} -\newenvironment{Section}[1]{% - \begin{Rdsection}{#1}}{\end{Rdsection}} -\newenvironment{Usage}{% - \begin{Rdsection}{Usage}}{\end{Rdsection}} -\newenvironment{Value}{% - \begin{Rdsection}{Value}}{\end{Rdsection}} - -\newenvironment{ExampleCode}{\small\verbatim}{\endverbatim} - -\ifx\textbackslash\undefined%-- e.g. for MM - \newcommand{\bsl}{\ifmmode\backslash\else$\backslash$\fi} -\else - \newcommand{\bsl}{\ifmmode\backslash\else\textbackslash\fi} -\fi -%fails for index (but is not used there...) -\newcommand{\SIs}{\relax\ifmmode\leftarrow\else$\leftarrow$\fi} -\newcommand{\SIIs}{\relax\ifmmode<\leftarrow\else$<\leftarrow$\fi} -\newcommand{\Sbecomes}{\relax\ifmmode\rightarrow\else$\rightarrow$\fi} -% -\newcommand{\deqn}[2]{\[#1\]} -\newcommand{\eqn}[2]{$#1$} -\newcommand{\bold}[1]{\ifmmode\bm{#1}\else\textbf{#1}\fi} -\newcommand{\file}[1]{`\textsf{#1}'} - -\ifthenelse{\boolean{Rd@use@hyper}} -{\newcommand{\link}[1]{\hyperlink{Rfn.#1}{#1}\index{#1@\texttt{#1}}}} -{\newcommand{\link}[1]{#1\index{#1@\texttt{#1}}}} - -\newcommand{\email}[1]{$\langle${#1}$\rangle$} - -%% \code without `-' ligatures -{\catcode`\-=\active% - \global\def\code{\bgroup% - \catcode`\-=\active \let-\codedash% - \Rd@code}} -\def\codedash{-\discretionary{}{}{}} -\def\Rd@code#1{\texttt{#1}\egroup} - -\def\AsIs{\bgroup\let\do\@makeother\Rd@AsIs@dospecials\Rd@AsIsX} -\def\Rd@AsIs@dospecials{\do\$\do\&\do\#\do\^\do\_\do\%\do\~} -\def\Rd@AsIsX#1{\normalfont #1\egroup} -\let\command=\code -\let\env=\code - -\newcommand\samp{`\bgroup\@noligs\@sampx} -\def\@sampx#1{{\normalfont\texttt{#1}}\egroup'} -\let\option=\samp - -\newcommand{\var}[1]{{\normalfont\textsl{#1}}} - -\newcommand{\dfn}[1]{\textsl{#1}} -\let\Cite=\dfn - -\newcommand{\acronym}[1]{\textsc{\lowercase{#1}}} -\newcommand{\kbd}[1]{\texttt{\textsl{#1}}} - -\newcommand{\strong}[1]{{\normalfont\fontseries{b}\selectfont #1}} -\let\pkg=\strong - -\newcommand{\sQuote}[1]{`#1'} -\newcommand{\dQuote}[1]{``#1''} - -\IfFileExists{ae.sty}{\setboolean{Rd@has@ae}{true}}{} -\ifthenelse{\boolean{Rd@use@ae}\and\boolean{Rd@has@ae}}{% - \usepackage[T1]{fontenc} - \usepackage{ae} - \input{t1aett.fd} - \DeclareFontShape{T1}{aett}{bx}{n}{<->ssub*aett/m/n}{}} - {\message{NOT loading ae}} -\IfFileExists{times.sty}{\setboolean{Rd@has@times}{true}}{} -\ifthenelse{\boolean{Rd@use@times}\and\boolean{Rd@has@times}}{% - \usepackage[T1]{fontenc} - \usepackage{times}} - {\message{NOT loading times}} -\IfFileExists{lmodern.sty}{\setboolean{Rd@has@lm}{true}}{} -\ifthenelse{\boolean{Rd@use@lm}\and\boolean{Rd@has@lm}}{% - \usepackage[T1]{fontenc} - \usepackage{lmodern}} - {\message{NOT loading lmodern}} -\ifthenelse{\boolean{Rd@use@cm-super}}{% - \usepackage[T1]{fontenc}}{} - -\ifthenelse{\boolean{Rd@use@hyper}}{% - \RequirePackage{color} - \def\myaddcontentsline#1#2#3{% - \addtocontents{#1}{\protect\contentsline{#2}{#3}{\thepage}{page.\thepage}}} - \RequirePackage{hyperref} - \DeclareTextCommand{\Rpercent}{PD1}{\045} % percent - %% <NOTE> - %% Formerly in R's hyperref.cfg, possibly to be shared with Sweave.sty - %% as well (but without setting pagebackref as this can give trouble - %% for .bib entries containing URLs with '#' characters). - \definecolor{Blue}{rgb}{0,0,0.8} - \definecolor{Red}{rgb}{0.7,0,0} - \hypersetup{% - hyperindex,% - colorlinks,% - pagebackref,% - linktocpage,% - plainpages=false,% - linkcolor=Blue,% - citecolor=Blue,% - urlcolor=Red,% - pdfstartview=Fit,% - pdfview={XYZ null null null}% - } - %% </NOTE> - \renewcommand\tableofcontents{% - \if@twocolumn - \@restonecoltrue\onecolumn - \else - \@restonecolfalse - \fi - \chapter*{\contentsname - \@mkboth{% - \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}% - \pdfbookmark{Contents}{contents} - \@starttoc{toc}% - \if@restonecol\twocolumn\fi - } - \renewenvironment{theindex} - {\if@twocolumn - \@restonecolfalse - \else - \@restonecoltrue - \fi - \columnseprule \z@ - \columnsep 35\p@ - \twocolumn[\@makeschapterhead{\indexname}]% - \@mkboth{\MakeUppercase\indexname}% - {\MakeUppercase\indexname}% - \pdfbookmark{Index}{index} - \myaddcontentsline{toc}{chapter}{Index} - \thispagestyle{plain}\parindent\z@ - \parskip\z@ \@plus .3\p@\relax - \raggedright - \let\item\@idxitem} - {\if@restonecol\onecolumn\else\clearpage\fi} - }{ - \renewenvironment{theindex} - {\if@twocolumn - \@restonecolfalse - \else - \@restonecoltrue - \fi - \columnseprule \z@ - \columnsep 35\p@ - \twocolumn[\@makeschapterhead{\indexname}]% - \@mkboth{\MakeUppercase\indexname}% - {\MakeUppercase\indexname}% - \addcontentsline{toc}{chapter}{Index} - \thispagestyle{plain}\parindent\z@ - \parskip\z@ \@plus .3\p@\relax - \raggedright - \let\item\@idxitem} - {\if@restonecol\onecolumn\else\clearpage\fi} - } - -% new definitions for R >= 2.0.0 -\ifthenelse{\boolean{Rd@use@hyper}} -{\newcommand{\LinkA}[2]{\hyperlink{Rfn.#2}{#1}\index{#1@\texttt{#1}|textit}}} -{\newcommand{\LinkA}[2]{#1\index{#1@\texttt{#1}|textit}}} -% -% \alias{<alias>}{<header>} -\ifthenelse{\boolean{Rd@use@hyper}} -{\newcommand{\aliasA}[3]{\hypertarget{Rfn.#3}{\index{#1@\texttt{#1} \textit{(\texttt{#2})}}}}} -{\newcommand{\aliasA}[3]{\index{#1@\texttt{#1} \textit{(\texttt{#2})}}}} -\ifthenelse{\boolean{Rd@use@hyper}} -{\newcommand{\methaliasA}[3]{\hypertarget{Rfn.#3}{\relax}}} -{\newcommand{\methaliasA}[3]{}} -\newcommand{\HeaderA}[3]{% - \vneed{1ex} - \markboth{#1}{#1} - \noindent - \nopagebreak - \begin{center} - \ifthenelse{\boolean{Rd@use@hyper}}% - {\def\@currentHref{page.\thepage} - \hypertarget{Rfn.#3}{\index{#1@\texttt{#1}}}% - \myaddcontentsline{toc}{subsection}{#1}% - \pdfbookmark[1]{#1}{Rfn.#3}} - {\addcontentsline{toc}{subsection}{#1} - \index{#1@\texttt{#1}|textbf}} - \hrule - \parbox{0.95\textwidth}{% - \begin{ldescription}[1.5in] - \item[\texttt{#1}] \emph{#2} - \end{ldescription}} - \hrule - \end{center} - \nopagebreak} -\DeclareTextCommandDefault{\Rpercent}{\%{}} -%% for use with the output of encoded_text_to_latex -\ProvideTextCommandDefault{\textdegree}{\ensuremath{{^\circ}}} -\ProvideTextCommandDefault{\textonehalf}{\ensuremath{\frac12}} -\ProvideTextCommandDefault{\textonequarter}{\ensuremath{\frac14}} -\ProvideTextCommandDefault{\textthreequarters}{\ensuremath{\frac34}} -\ProvideTextCommandDefault{\textcent}{\TextSymbolUnavailable\textcent} -\ProvideTextCommandDefault{\textyen}{\TextSymbolUnavailable\textyen} -\ProvideTextCommandDefault{\textcurrency}{\TextSymbolUnavailable\textcurrency} -\ProvideTextCommandDefault{\textbrokenbar}{\TextSymbolUnavailable\textbrokenbar} -\ProvideTextCommandDefault{\texteuro}{\TextSymbolUnavailable\texteuro} -\providecommand{\mathonesuperior}{\ensuremath{^1}} -\providecommand{\mathtwosuperior}{\ensuremath{^2}} -\providecommand{\maththreesuperior}{\ensuremath{^3}} - -\InputIfFileExists{Rd.cfg}{% - \typeout{Reading personal defaults ...}}{} Deleted: trunk/R2OpenBUGS/inst/doc/Z.cls =================================================================== --- trunk/R2OpenBUGS/inst/doc/Z.cls 2012-02-08 12:57:28 UTC (rev 249) +++ trunk/R2OpenBUGS/inst/doc/Z.cls 2012-02-08 16:28:59 UTC (rev 250) @@ -1,183 +0,0 @@ -\def\fileversion{1.0} -\def\filename{Z} -\def\filedate{2004/10/08} -%% -%% Package `Z' to use with LaTeX2e for Z reports -%% Copyright (C) 2004 Achim Zeileis -%% -\NeedsTeXFormat{LaTeX2e} -\ProvidesClass{Z}[\filedate\space\fileversion\space Z class by Achim Zeileis] - -%% options -\LoadClass[10pt,a4paper,twoside]{article} -\newif\if@notitle -\@notitlefalse -\DeclareOption{notitle}{\@notitletrue} -\ProcessOptions - -%% required packages -\RequirePackage{graphicx,a4wide,color,hyperref,ae,fancyvrb,thumbpdf} -\RequirePackage[T1]{fontenc} -\usepackage[authoryear,round,longnamesfirst]{natbib} -\bibpunct{(}{)}{;}{a}{}{,} -\bibliographystyle{literatur} - -%% paragraphs -\setlength{\parskip}{0.7ex plus0.1ex minus0.1ex} -\setlength{\parindent}{0em} - -%% commands -\let\code=\texttt -\let\proglang=\textsf -\newcommand{\E}{\mathsf{E}} -\newcommand{\VAR}{\mathsf{VAR}} -\newcommand{\COV}{\mathsf{COV}} -\newcommand{\Prob}{\mathsf{P}} - -%% for all publications -\newcommand{\Plaintitle}[1]{\def\@Plaintitle{#1}} -\newcommand{\Shorttitle}[1]{\def\@Shorttitle{#1}} -\newcommand{\Plainauthor}[1]{\def\@Plainauthor{#1}} -\newcommand{\Keywords}[1]{\def\@Keywords{#1}} -\newcommand{\Plainkeywords}[1]{\def\@Plainkeywords{#1}} -\newcommand{\Abstract}[1]{\def\@Abstract{#1}} - -%% defaults -\author{Firstname Lastname\\Affiliation} -\title{Title} -\Abstract{---!!!---an abstract is required---!!!---} -\Plainauthor{\@author} -\Plaintitle{\@title} -\Shorttitle{\@title} -\Keywords{---!!!---at least one keyword is required---!!!---} -\Plainkeywords{\@Keywords} - -%% Sweave(-like) -\DefineVerbatimEnvironment{Sinput}{Verbatim}{fontshape=sl} -\DefineVerbatimEnvironment{Soutput}{Verbatim}{} -\DefineVerbatimEnvironment{Scode}{Verbatim}{fontshape=sl} -%\newenvironment{Schunk}{}{} -\DefineVerbatimEnvironment{Code}{Verbatim}{} -\DefineVerbatimEnvironment{CodeInput}{Verbatim}{fontshape=sl} -\DefineVerbatimEnvironment{CodeOutput}{Verbatim}{} -\newenvironment{CodeChunk}{}{} -\setkeys{Gin}{width=0.8\textwidth} - -%% new \maketitle -\def\maketitle{ - \begingroup - \def\thefootnote{\fnsymbol{footnote}} - \def\@makefnmark{\hbox to 0pt{$^{\@thefnmark}$\hss}} - \long\def\@makefntext##1{\parindent 1em\noindent - \hbox to1.8em{\hss $\m@th ^{\@thefnmark}$}##1} - \@maketitle \@thanks - \endgroup - \setcounter{footnote}{0} - \thispagestyle{empty} - \markboth{\centerline{\@Shorttitle}}{\centerline{\@Plainauthor}} - \pagestyle{myheadings} - - \let\maketitle\relax \let\@maketitle\relax - \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax -} - -\def\@maketitle{\vbox{\hsize\textwidth \linewidth\hsize - {\centering - {\LARGE\bf \@title\par} - \def\And{\end{tabular}\hfil\linebreak[0]\hfil - \begin{tabular}[t]{c}\large\bf\rule{\z@}{24pt}\ignorespaces}% - \begin{tabular}[t]{c}\large\bf\rule{\z@}{24pt}\@author\end{tabular}% - \vskip 0.3in minus 0.1in - \hrule - \begin{abstract} - \@Abstract - \end{abstract}} - \textit{Keywords}:~\@Keywords. - \vskip 0.1in minus 0.05in - \hrule - \vskip 0.2in minus 0.1in -}} - - -%% sections, subsections, and subsubsections -\newlength{\preXLskip} -\newlength{\preLskip} -\newlength{\preMskip} -\newlength{\preSskip} -\newlength{\postMskip} -\newlength{\postSskip} -\setlength{\preXLskip}{1.8\baselineskip plus 0.5ex minus 0ex} -\setlength{\preLskip}{1.5\baselineskip plus 0.3ex minus 0ex} -\setlength{\preMskip}{1\baselineskip plus 0.2ex minus 0ex} -\setlength{\preSskip}{.8\baselineskip plus 0.2ex minus 0ex} -\setlength{\postMskip}{.5\baselineskip plus 0ex minus 0.1ex} -\setlength{\postSskip}{.3\baselineskip plus 0ex minus 0.1ex} - -\newcommand{\jsssec}[2][default]{\vskip \preXLskip% - \pdfbookmark[1]{#1}{Section.\thesection.#1}% - \refstepcounter{section}% - \centerline{\textbf{\Large \thesection. #2}} \nopagebreak - \vskip \postMskip \nopagebreak} -\newcommand{\jsssecnn}[1]{\vskip \preXLskip% - \centerline{\textbf{\Large #1}} \nopagebreak - \vskip \postMskip \nopagebreak} - -\newcommand{\jsssubsec}[2][default]{\vskip \preMskip% - \pdfbookmark[2]{#1}{Subsection.\thesubsection.#1}% - \refstepcounter{subsection}% - \textbf{\large \thesubsection. #2} \nopagebreak - \vskip \postSskip \nopagebreak} -\newcommand{\jsssubsecnn}[1]{\vskip \preMskip% - \textbf{\large #1} \nopagebreak - \vskip \postSskip \nopagebreak} - -\newcommand{\jsssubsubsec}[2][default]{\vskip \preSskip% - \pdfbookmark[3]{#1}{Subsubsection.\thesubsubsection.#1}% - \refstepcounter{subsubsection}% - {\large \textit{#2}} \nopagebreak - \vskip \postSskip \nopagebreak} -\newcommand{\jsssubsubsecnn}[1]{\vskip \preSskip% - {\textit{\large #1}} \nopagebreak - \vskip \postSskip \nopagebreak} - -\newcommand{\jsssimplesec}[2][default]{\vskip \preLskip% -%% \pdfbookmark[1]{#1}{Section.\thesection.#1}% - \refstepcounter{section}% - \textbf{\large #1} \nopagebreak - \vskip \postSskip \nopagebreak} -\newcommand{\jsssimplesecnn}[1]{\vskip \preLskip% - \textbf{\large #1} \nopagebreak - \vskip \postSskip \nopagebreak} - -\renewcommand{\section}{\secdef \jsssec \jsssecnn} -\renewcommand{\subsection}{\secdef \jsssubsec \jsssubsecnn} -\renewcommand{\subsubsection}{\secdef \jsssubsubsec \jsssubsubsecnn} - -%% colors -\definecolor{Red}{rgb}{0.7,0,0} -\definecolor{Blue}{rgb}{0,0,0.8} -\hypersetup{% - hyperindex = {true}, - colorlinks = {true}, - linktocpage = {true}, - plainpages = {false}, - linkcolor = {Blue}, - citecolor = {Blue}, - urlcolor = {Red}, - pdfstartview = {Fit}, - pdfpagemode = {UseOutlines}, - pdfview = {XYZ null null null} -} - -\AtBeginDocument{ - \hypersetup{% - pdfauthor = {\@Plainauthor}, - pdftitle = {\@Plaintitle}, - pdfkeywords = {\@Plainkeywords} - } -} -\if@notitle - %% \AtBeginDocument{\maketitle} -\else - \AtBeginDocument{\maketitle} -\fi Deleted: trunk/R2OpenBUGS/inst/doc/benzolsw.pdf =================================================================== --- trunk/R2OpenBUGS/inst/doc/benzolsw.pdf 2012-02-08 12:57:28 UTC (rev 249) +++ trunk/R2OpenBUGS/inst/doc/benzolsw.pdf 2012-02-08 16:28:59 UTC (rev 250) @@ -1,871 +0,0 @@ -%PDF-1.1 -%\xBF\xF7\xA2\xFE -1 0 obj -<< /Pages 3 0 R /Type /Catalog >> -endobj -2 0 obj -<< /CreationDate (D:20040419142809) /Creator (R) /ModDate (D:20040419142809) /Producer (R 1.8.1) /Title (R Graphics Output) >> -endobj -3 0 obj -<< /Count 1 /Kids [ 4 0 R ] /MediaBox [ 0 0 432 216 ] /Type /Pages >> -endobj -4 0 obj -<< /Contents 5 0 R /Parent 3 0 R /Resources 6 0 R /Type /Page >> -endobj -5 0 obj -<< /Length 100248 /Filter /FlateDecode >> -stream -x\x9C\x8C\xFDK\xAE.9\xAF\xF6\xEF(\xCE\xA1\xB74ܨ\xEAT\xA3\xE0΅ -ƿ -\xD8O\xDF[⛔N\xBAs\x90\xB9vI\xE9\x93(\xD7 -E\xFA\xF3?\xFEI\xFE\xF7?\xE9\xFB\xF3?\xFD\xF9?\xFF\xEB\xFF\xF3\xE7\xFF\xFC\xF3\xFD\xF3}\xF0O^ퟕ\xFF\xE4\xD4\xF7\xFF\xFD_\xFF\xEB\x9F\xFFߟ\xFF\xE3\xBF\xD2\xEF\x9A\xCEU\xBF\xF8\xDF\xFE\xEBCP\xFE\xFD\xFF\xFE\xBF\xE0h\xFE\xEF\xFF\xFA\xFF\xFF\xCF\xBE?\xFF\xCB\xFD\xF9\xD3\xFA?}\xFC\xC9_\xF9g\xB6?? -\xA8\xFF\xCC\xF4\xE7? -\xE8\xFF\x8C\xC0\xF8\xE7k\xA0+\xC6?\xE5\x83+&m0 n\xF9 |
From: <snt...@us...> - 2012-02-08 12:57:42
|
Revision: 249 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=249&view=rev Author: snthomas99 Date: 2012-02-08 12:57:28 +0000 (Wed, 08 Feb 2012) Log Message: ----------- Fixing DIC problem and updating documentation Modified Paths: -------------- trunk/R2OpenBUGS/DESCRIPTION trunk/R2OpenBUGS/R/bugs.sims.R trunk/R2OpenBUGS/inst/NEWS trunk/R2OpenBUGS/inst/doc/R2OpenBUGS.pdf trunk/R2OpenBUGS/man/bugs.Rd trunk/R2OpenBUGS/man/bugs.log.Rd Modified: trunk/R2OpenBUGS/DESCRIPTION =================================================================== --- trunk/R2OpenBUGS/DESCRIPTION 2012-01-06 09:50:47 UTC (rev 248) +++ trunk/R2OpenBUGS/DESCRIPTION 2012-02-08 12:57:28 UTC (rev 249) @@ -1,7 +1,7 @@ Package: R2OpenBUGS Title: Running OpenBUGS from R -Date: 2011-12-20 -Version: 3.2-1.3 +Date: 2012-2-04 +Version: 3.2-1.4 Author: originally written as R2WinBUGS by Andrew Gelman <ge...@st...>; changes and packaged by Sibylle Sturtz <st...@st...> and Uwe Ligges <li...@st...>. Modified: trunk/R2OpenBUGS/R/bugs.sims.R =================================================================== --- trunk/R2OpenBUGS/R/bugs.sims.R 2012-01-06 09:50:47 UTC (rev 248) +++ trunk/R2OpenBUGS/R/bugs.sims.R 2012-02-08 12:57:28 UTC (rev 249) @@ -124,7 +124,8 @@ pD=mean(pD), DIC=mean(DIC))) } else { ## Use BUGS calculation of DIC all <- c(all, list(isDIC=TRUE, DICbyR=FALSE, - pD=LOG[nrow(LOG),3], DIC=LOG[nrow(LOG),4])) + pD=LOG[nrow(LOG),4], DIC=LOG[nrow(LOG),3])) + ## order reversed in OpenBUGS from WinBUGS } } else { all <- c(all, isDIC=FALSE) Modified: trunk/R2OpenBUGS/inst/NEWS =================================================================== --- trunk/R2OpenBUGS/inst/NEWS 2012-01-06 09:50:47 UTC (rev 248) +++ trunk/R2OpenBUGS/inst/NEWS 2012-02-08 12:57:28 UTC (rev 249) @@ -1,6 +1,11 @@ Changes to R2OpenBUGS: ====================== +Update 3.2-1.4 +- Corrected printing of pD and DIC, which were reversed +- Updated documentation to note difference in DIC reporting between Windows and Linux, and the lack of support for the bugs.log function under Linux +- Fixed problem with references in vignette + Update 3.2-1.3 - cleanup: removed S-PLUS support completely since that was removed at several other places before Modified: trunk/R2OpenBUGS/inst/doc/R2OpenBUGS.pdf =================================================================== --- trunk/R2OpenBUGS/inst/doc/R2OpenBUGS.pdf 2012-01-06 09:50:47 UTC (rev 248) +++ trunk/R2OpenBUGS/inst/doc/R2OpenBUGS.pdf 2012-02-08 12:57:28 UTC (rev 249) @@ -1,246 +1,635 @@ %PDF-1.5 %\xD0\xD4\xC5\xD8 1 0 obj -<< /S /GoTo /D [2 0 R /Fit] >> +<< /S /GoTo /D (Section.0.Introduction.1) >> endobj -10 0 obj << -/Length 4405 +4 0 obj +(Introduction) +endobj +5 0 obj +<< /S /GoTo /D (Section.1.Examples.1) >> +endobj +8 0 obj +(Examples) +endobj +9 0 obj +<< /S /GoTo /D (Subsection.2.0.Schools\040data.2) >> +endobj +12 0 obj +(Schools data) +endobj +13 0 obj +<< /S /GoTo /D (Subsection.2.1.Leukaemia\040registration\040data.2) >> +endobj +16 0 obj +(Leukaemia registration data) +endobj +17 0 obj +<< /S /GoTo /D (Section.2.Implementation.1) >> +endobj +20 0 obj +(Implementation) +endobj +21 0 obj +<< /S /GoTo /D (Section.3.Examples\040continued.1) >> +endobj +24 0 obj +(Examples continued) +endobj +25 0 obj +<< /S /GoTo /D (Subsection.4.0.Schools\040data.2) >> +endobj +28 0 obj +(Schools data) +endobj +29 0 obj +<< /S /GoTo /D (Subsection.4.1.Leukaemia\040registration\040data.2) >> +endobj +32 0 obj +(Leukaemia registration data) +endobj +33 0 obj +<< /S /GoTo /D (Section..Help\040page\040for\040the\040function\040bugs\(\).1) >> +endobj +36 0 obj +(Help page for the function bugs\(\)) +endobj +37 0 obj +<< /S /GoTo /D (appendix.A) >> +endobj +40 0 obj +(bugs) +endobj +41 0 obj +<< /S /GoTo /D [42 0 R /Fit] >> +endobj +64 0 obj << +/Length 4292 /Filter /FlateDecode >> stream -x\xDA\xD5;\xD9rG\x92\xEF\xFA -\xC4<l\x80B\xB9\xEB\xE8\xCB\xFB\xE0\x91\xBD\xB6bgG\xE3YQ -?\x8C\xE7\xA1 4\xC8\xE1\xE0\xA0\xD3\xD4N\xC4\xFE\xFA\xE6Y] -4i\xCAX]GVVޙU\xCCf\xB7\xB3l\xF6\xF6U&\xBF\xBF\xFD\xF0\xEA\xAB -;\xB3\xA5q6\xB3\xEB\x99ބ`g\xA5\xB3Ɔz\xF6a5\xFB\xDB\xFC\xFD\x95\x9D\xBB\xEF\xAF\xAE\x9C\xB7\xD0\xDE\xC1Ϸ\xDF^_\xFD\xFDß |
From: Rodney S. <rsp...@mc...> - 2012-02-06 15:20:38
|
Subject:R2OpenBUGS mis-reports pD and DIC From: Timothy Handley <Tim...@NP...> Date: Fri, 3 Feb 2012 10:16:46 -0600 I ran a model using R2OpenBUGS. The latter bit of output was: b.pcov.sd.u[1] 1.3 0.1 1.2 1.3 1.3 1.4 1.5 1 1600 c.Nzero.pre 142.3 6.3 129.0 138.0 142.0 147.0 154.0 1 1800 deviance 1175.0 24.6 1129.0 1158.0 1174.0 1191.0 1225.0 1 1800 For each parameter, n.eff is a crude measure of effective sample size, and Rhat is the potential scale reduction factor (at convergence, Rhat=1). DIC info (using the rule, pD = Dbar-Dhat) pD = 1400.0 and DIC = 224.9 DIC is an estimate of expected predictive error (lower deviance is better). The pD value was shocking. This model has several random effects, but even so, I expected no more than 200 effective parameters. On further thought, I was concerned to see that mean deviance (1175) plus pD (1400) was not equal to DIC (224.9). So I reran the model with debug=TRUE. Then, from within the OpenBUGS GUI, I opened the DIC tool, and asked for stats on the node corresponding to the data. OpenBUGS reported the following: Deviance information Dbar Dhat DIC pD ones 1175.0 950.1 1400.0 224.9 These numbers are in the range of believability. They also have the expected relationship, with DIC=Dbar+pD. So it seems that R2OpenBUGS reverses the values for pD and DIC. It prints the value for DIC in the space for pD, and prints the value for pD in the space for DIC. Tim Handley Research Assistant Mediterranean Network, NPS 805-658-5759 (CHIS) 805-370-2396 (SAMO) -- Rodney Sparapani, PhD Center for Patient Care and Outcomes Research Sr. Biostatistician http://www.mcw.edu/pcor 4 wheels good, 2 wheels better! Medical College of Wisconsin (MCW) WWLD?: What Would Lombardi Do? Milwaukee, WI, USA |
From: <li...@us...> - 2012-01-06 09:50:54
|
Revision: 248 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=248&view=rev Author: ligges Date: 2012-01-06 09:50:47 +0000 (Fri, 06 Jan 2012) Log Message: ----------- bugfix release: we generated a $TEMPDIR_trash directory that was not cleaned up, now trash is a subdir of tempdir() Modified Paths: -------------- trunk/BRugs/DESCRIPTION trunk/BRugs/R/internal.R trunk/BRugs/src/BugsHelper.c Modified: trunk/BRugs/DESCRIPTION =================================================================== --- trunk/BRugs/DESCRIPTION 2012-01-03 09:57:39 UTC (rev 247) +++ trunk/BRugs/DESCRIPTION 2012-01-06 09:50:47 UTC (rev 248) @@ -1,7 +1,7 @@ Package: BRugs Title: R interface to the OpenBUGS MCMC software -Version: 0.7-4 -Date: 2011-12-30 +Version: 0.7-5 +Date: 2012-01-06 Author: OpenBUGS was developed by Andrew Thomas, Dave Lunn, David Spiegelhalter and Nicky Best. R interface developed by Uwe Ligges, Sibylle Sturtz, Andrew Gelman, Gregor Gorjanc and Chris Jackson. Linux port and most recent developments by Chris Jackson. Description: Fully-interactive R interface to the OpenBUGS software for Bayesian analysis using MCMC sampling. Runs natively and stably in 32-bit R under Windows. Versions running on Linux and on 64-bit R under Windows are in "beta" status and less efficient. Maintainer: Uwe Ligges <li...@st...> Modified: trunk/BRugs/R/internal.R =================================================================== --- trunk/BRugs/R/internal.R 2012-01-03 09:57:39 UTC (rev 247) +++ trunk/BRugs/R/internal.R 2012-01-06 09:50:47 UTC (rev 248) @@ -47,7 +47,7 @@ tempDir <- getOption("BRugsTmpdir") ## Don't want internalize/externalize to overwrite the command ## output buffer, so redirect its output to a separate trash can. - trashDir <- paste(tempDir, "_trash", sep="") + trashDir <- file.path(tempDir, "trash", fsep="/") extFile <- getOption("BRugsExtFile") cmdFile <- paste(tempDir, "cmds.txt", sep="/") bugsPath <- system.file("exec", paste("BugsHelper", if(.Platform$OS.type == "windows") ".exe", sep=""), package="BRugs") Modified: trunk/BRugs/src/BugsHelper.c =================================================================== --- trunk/BRugs/src/BugsHelper.c 2012-01-03 09:57:39 UTC (rev 247) +++ trunk/BRugs/src/BugsHelper.c 2012-01-06 09:50:47 UTC (rev 248) @@ -49,7 +49,7 @@ "BugsEmbed.SetFilePath('/scratch/chris/lib/R/BRugs/OpenBUGS/Examples/Ratsdata.txt');BugsEmbed.LoadDataGuard;BugsEmbed.LoadData" 0 - /path/to/BugsHelper "/tmp/RtmpaRQois" "/tmp/RtmpaRQois_trash" "file327b23c6.bug" "BugsEmbed.SetFilePath('/path/to/Examples/Ratsmodel.txt');BugsEmbed.ParseGuard;BugsEmbed.Parse" 0 "BugsEmbed.SetFilePath('/path/to/Examples/Ratsdata.txt');BugsEmbed.LoadDataGuard;BugsEmbed.LoadData" 0 + /path/to/BugsHelper "/tmp/RtmpaRQois" "/tmp/RtmpaRQois/trash" "file327b23c6.bug" "BugsEmbed.SetFilePath('/path/to/Examples/Ratsmodel.txt');BugsEmbed.ParseGuard;BugsEmbed.Parse" 0 "BugsEmbed.SetFilePath('/path/to/Examples/Ratsdata.txt');BugsEmbed.LoadDataGuard;BugsEmbed.LoadData" 0 TODO This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2012-01-03 09:57:45
|
Revision: 247 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=247&view=rev Author: chris-jackson Date: 2012-01-03 09:57:39 +0000 (Tue, 03 Jan 2012) Log Message: ----------- Tweaked Description - 64 bit Rwin and Linux are expected to be equally unstable. Modified Paths: -------------- trunk/BRugs/DESCRIPTION Modified: trunk/BRugs/DESCRIPTION =================================================================== --- trunk/BRugs/DESCRIPTION 2012-01-03 09:36:37 UTC (rev 246) +++ trunk/BRugs/DESCRIPTION 2012-01-03 09:57:39 UTC (rev 247) @@ -3,7 +3,7 @@ Version: 0.7-4 Date: 2011-12-30 Author: OpenBUGS was developed by Andrew Thomas, Dave Lunn, David Spiegelhalter and Nicky Best. R interface developed by Uwe Ligges, Sibylle Sturtz, Andrew Gelman, Gregor Gorjanc and Chris Jackson. Linux port and most recent developments by Chris Jackson. -Description: Fully-interactive R interface to the OpenBUGS software for Bayesian analysis using MCMC sampling; 32-bit R under Windows is supported "most native", 64-bit R interface under Windows is probably slower, Linux versions are in "beta" status +Description: Fully-interactive R interface to the OpenBUGS software for Bayesian analysis using MCMC sampling. Runs natively and stably in 32-bit R under Windows. Versions running on Linux and on 64-bit R under Windows are in "beta" status and less efficient. Maintainer: Uwe Ligges <li...@st...> Depends: R (>= 2.11.0), coda Imports: utils, coda This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2012-01-03 09:36:48
|
Revision: 246 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=246&view=rev Author: chris-jackson Date: 2012-01-03 09:36:37 +0000 (Tue, 03 Jan 2012) Log Message: ----------- Single spacing message Modified Paths: -------------- trunk/BRugs/R/windows/zzz.x64.R Modified: trunk/BRugs/R/windows/zzz.x64.R =================================================================== --- trunk/BRugs/R/windows/zzz.x64.R 2012-01-02 13:24:45 UTC (rev 245) +++ trunk/BRugs/R/windows/zzz.x64.R 2012-01-03 09:36:37 UTC (rev 246) @@ -14,8 +14,8 @@ .initGlobals() msg <- paste("Welcome to BRugs connected to OpenBUGS") if (!is.na(ob$version)) - msg <- paste(msg, " version ", ob$version) - else msg <- paste(msg, " in directory ", ob$dir) + msg <- paste(msg, "version", ob$version) + else msg <- paste(msg, "in directory", ob$dir) packageStartupMessage(msg) pathtoBUGS <- gsub("/", "\\", ob$dir) oldpath <- Sys.getenv("PATH") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Uwe L. <li...@st...> - 2012-01-02 13:52:58
|
I am about to release this as soon as Kurt is back from vacation and handles CRAN submissions. Any objections? Uwe On 02.01.2012 14:24, li...@us... wrote: > Revision: 245 > http://bugs-r.svn.sourceforge.net/bugs-r/?rev=245&view=rev > Author: ligges > Date: 2012-01-02 13:24:45 +0000 (Mon, 02 Jan 2012) > Log Message: > ----------- > statements: 32-bit Windows is still the most native version, Linux version labeled as "beta" > > Modified Paths: > -------------- > trunk/BRugs/DESCRIPTION > trunk/BRugs/NEWS > > Modified: trunk/BRugs/DESCRIPTION > =================================================================== > --- trunk/BRugs/DESCRIPTION 2011-12-30 19:44:11 UTC (rev 244) > +++ trunk/BRugs/DESCRIPTION 2012-01-02 13:24:45 UTC (rev 245) > @@ -3,7 +3,7 @@ > Version: 0.7-4 > Date: 2011-12-30 > Author: OpenBUGS was developed by Andrew Thomas, Dave Lunn, David Spiegelhalter and Nicky Best. R interface developed by Uwe Ligges, Sibylle Sturtz, Andrew Gelman, Gregor Gorjanc and Chris Jackson. Linux port and most recent developments by Chris Jackson. > -Description: Fully-interactive R interface to the OpenBUGS software for Bayesian analysis using MCMC sampling > +Description: Fully-interactive R interface to the OpenBUGS software for Bayesian analysis using MCMC sampling; 32-bit R under Windows is supported "most native", 64-bit R interface under Windows is probably slower, Linux versions are in "beta" status > Maintainer: Uwe Ligges<li...@st...> > Depends: R (>= 2.11.0), coda > Imports: utils, coda > > Modified: trunk/BRugs/NEWS > =================================================================== > --- trunk/BRugs/NEWS 2011-12-30 19:44:11 UTC (rev 244) > +++ trunk/BRugs/NEWS 2012-01-02 13:24:45 UTC (rev 245) > @@ -1,10 +1,11 @@ > Changes to BRugs: > ===================== > -Version 0.7.2 (?? September 2011) > +Version 0.7.3 (02 January 2012) > ------------- > BRugs now supports 64-bit R on Windows, using the same helper program > as Linux for calling the 32 bit OpenBUGS shared library. Thanks to > -Brian Ripley for the reports. > +Brian Ripley for the reports. This is typically slower than the more > +native interface used for 32-bit R on Windows. > > On Linux, when the OpenBUGS library call terminates with a "trap" > error, the trap message is now shown. Thanks to Alexandre Villers. > @@ -26,7 +27,11 @@ > BugsCmd API function is now supported by BugsHelper, but this is not > used. > > +Some minor bug and documentation fixes. > > +First CRAN version for OpenBUGS 3.2.1. > + > + > Version 0.7.1 (19 April 2011) > ------------- > > > This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. > > > ------------------------------------------------------------------------------ > Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex > infrastructure or vast IT resources to deliver seamless, secure access to > virtual desktops. With this all-in-one solution, easily deploy virtual > desktops for less than the cost of PCs and save 60% on VDI infrastructure > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Bugs-r-devel mailing list > Bug...@li... > https://lists.sourceforge.net/lists/listinfo/bugs-r-devel |
From: <li...@us...> - 2012-01-02 13:24:51
|
Revision: 245 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=245&view=rev Author: ligges Date: 2012-01-02 13:24:45 +0000 (Mon, 02 Jan 2012) Log Message: ----------- statements: 32-bit Windows is still the most native version, Linux version labeled as "beta" Modified Paths: -------------- trunk/BRugs/DESCRIPTION trunk/BRugs/NEWS Modified: trunk/BRugs/DESCRIPTION =================================================================== --- trunk/BRugs/DESCRIPTION 2011-12-30 19:44:11 UTC (rev 244) +++ trunk/BRugs/DESCRIPTION 2012-01-02 13:24:45 UTC (rev 245) @@ -3,7 +3,7 @@ Version: 0.7-4 Date: 2011-12-30 Author: OpenBUGS was developed by Andrew Thomas, Dave Lunn, David Spiegelhalter and Nicky Best. R interface developed by Uwe Ligges, Sibylle Sturtz, Andrew Gelman, Gregor Gorjanc and Chris Jackson. Linux port and most recent developments by Chris Jackson. -Description: Fully-interactive R interface to the OpenBUGS software for Bayesian analysis using MCMC sampling +Description: Fully-interactive R interface to the OpenBUGS software for Bayesian analysis using MCMC sampling; 32-bit R under Windows is supported "most native", 64-bit R interface under Windows is probably slower, Linux versions are in "beta" status Maintainer: Uwe Ligges <li...@st...> Depends: R (>= 2.11.0), coda Imports: utils, coda Modified: trunk/BRugs/NEWS =================================================================== --- trunk/BRugs/NEWS 2011-12-30 19:44:11 UTC (rev 244) +++ trunk/BRugs/NEWS 2012-01-02 13:24:45 UTC (rev 245) @@ -1,10 +1,11 @@ Changes to BRugs: ===================== -Version 0.7.2 (?? September 2011) +Version 0.7.3 (02 January 2012) ------------- BRugs now supports 64-bit R on Windows, using the same helper program as Linux for calling the 32 bit OpenBUGS shared library. Thanks to -Brian Ripley for the reports. +Brian Ripley for the reports. This is typically slower than the more +native interface used for 32-bit R on Windows. On Linux, when the OpenBUGS library call terminates with a "trap" error, the trap message is now shown. Thanks to Alexandre Villers. @@ -26,7 +27,11 @@ BugsCmd API function is now supported by BugsHelper, but this is not used. +Some minor bug and documentation fixes. +First CRAN version for OpenBUGS 3.2.1. + + Version 0.7.1 (19 April 2011) ------------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <li...@us...> - 2011-12-30 19:44:17
|
Revision: 244 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=244&view=rev Author: ligges Date: 2011-12-30 19:44:11 +0000 (Fri, 30 Dec 2011) Log Message: ----------- Grrr, accidentally reverted the maintainer removal Modified Paths: -------------- trunk/BRugs/R/internal.R Modified: trunk/BRugs/R/internal.R =================================================================== --- trunk/BRugs/R/internal.R 2011-12-30 19:37:41 UTC (rev 243) +++ trunk/BRugs/R/internal.R 2011-12-30 19:44:11 UTC (rev 244) @@ -85,7 +85,7 @@ buf <- readLines(file.path(tempdir(), "buffer.txt")) trap <- grep("Sorry something went wrong", buf, value=TRUE) if(length(trap) > 0) message(trap[1]) - stop(errors[res], "\nPlease report this bug to ", maintainer) + stop(errors[res])#, "\nPlease report this bug to ", maintainer) } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <li...@us...> - 2011-12-30 19:37:47
|
Revision: 243 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=243&view=rev Author: ligges Date: 2011-12-30 19:37:41 +0000 (Fri, 30 Dec 2011) Log Message: ----------- final glitch for 64-bit: file has .exe ending (wonder why it worked before?) Modified Paths: -------------- trunk/BRugs/R/internal.R Modified: trunk/BRugs/R/internal.R =================================================================== --- trunk/BRugs/R/internal.R 2011-12-30 19:00:48 UTC (rev 242) +++ trunk/BRugs/R/internal.R 2011-12-30 19:37:41 UTC (rev 243) @@ -50,7 +50,7 @@ trashDir <- paste(tempDir, "_trash", sep="") extFile <- getOption("BRugsExtFile") cmdFile <- paste(tempDir, "cmds.txt", sep="/") - bugsPath <- system.file("exec", "BugsHelper", package="BRugs") + bugsPath <- system.file("exec", paste("BugsHelper", if(.Platform$OS.type == "windows") ".exe", sep=""), package="BRugs") shcmd <- paste(dquote(bugsPath), dquote(tempDir), dquote(trashDir), dquote(extFile), dquote(cmdFile), dquote(ncmds)) for (i in 1:ncmds) { if (cmdtypes[i] %in% c("CharArray","RealArray")) @@ -85,7 +85,7 @@ buf <- readLines(file.path(tempdir(), "buffer.txt")) trap <- grep("Sorry something went wrong", buf, value=TRUE) if(length(trap) > 0) message(trap[1]) - stop(errors[res])#, "\nPlease report this bug to ", maintainer) + stop(errors[res], "\nPlease report this bug to ", maintainer) } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <li...@us...> - 2011-12-30 19:00:54
|
Revision: 242 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=242&view=rev Author: ligges Date: 2011-12-30 19:00:48 +0000 (Fri, 30 Dec 2011) Log Message: ----------- last change uncovered a missing import Modified Paths: -------------- trunk/BRugs/NAMESPACE Modified: trunk/BRugs/NAMESPACE =================================================================== --- trunk/BRugs/NAMESPACE 2011-12-30 18:55:34 UTC (rev 241) +++ trunk/BRugs/NAMESPACE 2011-12-30 19:00:48 UTC (rev 242) @@ -1,5 +1,5 @@ importFrom(coda, mcmc, mcmc.list) -importFrom(utils, compareVersion) +importFrom(utils, compareVersion, maintainer) export(BRugsFit, bugsData, bugsInits, buildMCMC, dicClear, dicSet, dicStats, getNumChains, help.BRugs, help.WinBUGS, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <li...@us...> - 2011-12-30 18:55:40
|
Revision: 241 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=241&view=rev Author: ligges Date: 2011-12-30 18:55:34 +0000 (Fri, 30 Dec 2011) Log Message: ----------- Hmm, the Linux version of OpenBUGS still seems to be a bit unstable, hence I really do not want to get all the bug reports about an OpenBUGS crashing R via the BRugs interface Modified Paths: -------------- trunk/BRugs/R/internal.R Modified: trunk/BRugs/R/internal.R =================================================================== --- trunk/BRugs/R/internal.R 2011-12-30 18:52:25 UTC (rev 240) +++ trunk/BRugs/R/internal.R 2011-12-30 18:55:34 UTC (rev 241) @@ -85,7 +85,7 @@ buf <- readLines(file.path(tempdir(), "buffer.txt")) trap <- grep("Sorry something went wrong", buf, value=TRUE) if(length(trap) > 0) message(trap[1]) - stop(errors[res], "\nPlease report this bug to ", maintainer) + stop(errors[res])#, "\nPlease report this bug to ", maintainer) } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <li...@us...> - 2011-12-30 18:52:31
|
Revision: 240 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=240&view=rev Author: ligges Date: 2011-12-30 18:52:25 +0000 (Fri, 30 Dec 2011) Log Message: ----------- point for more than just scalar nodes to samplesHistory Modified Paths: -------------- trunk/BRugs/man/samples.sample.Rd Modified: trunk/BRugs/man/samples.sample.Rd =================================================================== --- trunk/BRugs/man/samples.sample.Rd 2011-12-30 18:51:49 UTC (rev 239) +++ trunk/BRugs/man/samples.sample.Rd 2011-12-30 18:52:25 UTC (rev 240) @@ -10,7 +10,9 @@ } \note{ If sampling a vector of parameters, the function must be called for each parameter separately -such as \code{samplesSample(node[1])}. +such as \code{samplesSample("node[1]")}. + +To get samples from more than only one scalar node, see \code{\link{samplesHistory}} with argument \code{plot=FALSE}. } \value{ Values of the stored sample. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <li...@us...> - 2011-12-30 18:51:55
|
Revision: 239 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=239&view=rev Author: ligges Date: 2011-12-30 18:51:49 +0000 (Fri, 30 Dec 2011) Log Message: ----------- rev 211 broke samplesHistory and removed its capability to work on more than just a scalar note. This is a worakround to enable the feature again Revision Links: -------------- http://bugs-r.svn.sourceforge.net/bugs-r/?rev=211&view=rev Modified Paths: -------------- trunk/BRugs/R/samples.history.R Modified: trunk/BRugs/R/samples.history.R =================================================================== --- trunk/BRugs/R/samples.history.R 2011-12-30 18:39:49 UTC (rev 238) +++ trunk/BRugs/R/samples.history.R 2011-12-30 18:51:49 UTC (rev 239) @@ -4,7 +4,13 @@ thin = samplesGetThin(), plot = TRUE, mfrow = c(3, 1), ask = NULL, ann = TRUE, ...) # Plot history { - if (samplesSize(node)==0) stop("No monitored samples available") + sM <- samplesMonitors(node)[1] + if(sM == "model must be initialized before monitors used") + stop("model must be initialized / updated / monitored before samplesSample is used") + if(length(grep("^no monitor set for variable", sM))) + stop(sM) + if (samplesSize(sM[1])==0) + stop("No monitored samples available") if(plot && is.null(ask)) { if (is.R()) ask <- !((dev.cur() > 1) && !dev.interactive()) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <li...@us...> - 2011-12-30 18:39:55
|
Revision: 238 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=238&view=rev Author: ligges Date: 2011-12-30 18:39:49 +0000 (Fri, 30 Dec 2011) Log Message: ----------- protect against crash in samplesSample("nonExistingNode") Modified Paths: -------------- trunk/BRugs/R/samples.sample.R Modified: trunk/BRugs/R/samples.sample.R =================================================================== --- trunk/BRugs/R/samples.sample.R 2011-12-30 18:33:23 UTC (rev 237) +++ trunk/BRugs/R/samples.sample.R 2011-12-30 18:39:49 UTC (rev 238) @@ -9,6 +9,8 @@ sM <- samplesMonitors(node)[1] if(sM == "model must be initialized before monitors used") stop("model must be initialized / updated / monitored before samplesSample is used") + if(length(grep("^no monitor set for variable", sM))) + stop(sM) nodeSize <- .OpenBUGS(c("BugsRobjects.SetVariable", "BugsRobjects.GetSize"), c("CharArray","Integer"), list(node,NA))[[2]] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <li...@us...> - 2011-12-30 18:33:29
|
Revision: 237 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=237&view=rev Author: ligges Date: 2011-12-30 18:33:23 +0000 (Fri, 30 Dec 2011) Log Message: ----------- check for success on file.copy Modified Paths: -------------- trunk/BRugs/tests/BRugs.R trunk/BRugs/tests/BRugs.Rout.save trunk/BRugs/tests/examples.R trunk/BRugs/tests/examples.Rout.save trunk/BRugs/tests/functions.R trunk/BRugs/tests/functions.Rout.save Modified: trunk/BRugs/tests/BRugs.R =================================================================== --- trunk/BRugs/tests/BRugs.R 2011-12-30 17:36:42 UTC (rev 236) +++ trunk/BRugs/tests/BRugs.R 2011-12-30 18:33:23 UTC (rev 237) @@ -7,8 +7,13 @@ ## Prepare the example files in a temporary directory exfiles <- dir(options()$OpenBUGSExamples, pattern="^Rats.*txt$", full.names=TRUE) ok <- file.copy(exfiles, tempdir()) +if(!all(ok)) + stop("Some files could not be copied from OpenBUGS examples to the temporary directory") + exfiles <- dir(options()$OpenBUGSExamples, pattern="^Beetles.*txt$", full.names=TRUE) ok <- file.copy(exfiles, tempdir()) +if(!all(ok)) + stop("Some files could not be copied from OpenBUGS examples to the temporary directory") BRugsFit(data = "Ratsdata.txt", inits = "Ratsinits.txt", Modified: trunk/BRugs/tests/BRugs.Rout.save =================================================================== --- trunk/BRugs/tests/BRugs.Rout.save 2011-12-30 17:36:42 UTC (rev 236) +++ trunk/BRugs/tests/BRugs.Rout.save 2011-12-30 18:33:23 UTC (rev 237) @@ -1,5 +1,5 @@ -R version 2.13.1 Patched (2011-07-20 r56455) +R version 2.14.1 (2011-12-22) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i386-pc-mingw32/i386 (32-bit) @@ -25,8 +25,13 @@ + ## Prepare the example files in a temporary directory + exfiles <- dir(options()$OpenBUGSExamples, pattern="^Rats.*txt$", full.names=TRUE) + ok <- file.copy(exfiles, tempdir()) ++ if(!all(ok)) ++ stop("Some files could not be copied from OpenBUGS examples to the temporary directory") ++ + exfiles <- dir(options()$OpenBUGSExamples, pattern="^Beetles.*txt$", full.names=TRUE) + ok <- file.copy(exfiles, tempdir()) ++ if(!all(ok)) ++ stop("Some files could not be copied from OpenBUGS examples to the temporary directory") + + + BRugsFit(data = "Ratsdata.txt", inits = "Ratsinits.txt", Modified: trunk/BRugs/tests/examples.R =================================================================== --- trunk/BRugs/tests/examples.R 2011-12-30 17:36:42 UTC (rev 236) +++ trunk/BRugs/tests/examples.R 2011-12-30 18:33:23 UTC (rev 237) @@ -38,6 +38,8 @@ for (i in seq(along=test.models)) { exfiles <- dir(options()$OpenBUGSExamples, pattern=test.pattern[i], full.names=TRUE) ok <- file.copy(exfiles, tempdir()) + if(!all(ok)) + stop("Some files could not be copied from OpenBUGS examples to the temporary directory") fit <- BRugsFit(data=test.datafile[i], inits=test.inits[i], modelFile=test.modelfile[i], para=test.params[[test.models[i]]], nBurnin=5000, nIter=20000, nThin=1, numChains=1, seed=1, Modified: trunk/BRugs/tests/examples.Rout.save =================================================================== --- trunk/BRugs/tests/examples.Rout.save 2011-12-30 17:36:42 UTC (rev 236) +++ trunk/BRugs/tests/examples.Rout.save 2011-12-30 18:33:23 UTC (rev 237) @@ -1,5 +1,5 @@ -R version 2.13.1 Patched (2011-07-20 r56455) +R version 2.14.1 (2011-12-22) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i386-pc-mingw32/i386 (32-bit) @@ -56,6 +56,8 @@ + for (i in seq(along=test.models)) { + exfiles <- dir(options()$OpenBUGSExamples, pattern=test.pattern[i], full.names=TRUE) + ok <- file.copy(exfiles, tempdir()) ++ if(!all(ok)) ++ stop("Some files could not be copied from OpenBUGS examples to the temporary directory") + fit <- BRugsFit(data=test.datafile[i], inits=test.inits[i], + modelFile=test.modelfile[i], para=test.params[[test.models[i]]], + nBurnin=5000, nIter=20000, nThin=1, numChains=1, seed=1, @@ -176,7 +178,7 @@ monitor set for variable 'sigma1' monitor set for variable 'sigma2' monitor set for variable 'theta' -20000 updates took 1 s +20000 updates took 0 s model is syntactically correct data loaded model compiled @@ -269,5 +271,5 @@ monitor set for variable 'p' monitor set for variable 'pop.mean' monitor set for variable 'sigma' -20000 updates took 2 s +20000 updates took 1 s > Modified: trunk/BRugs/tests/functions.R =================================================================== --- trunk/BRugs/tests/functions.R 2011-12-30 17:36:42 UTC (rev 236) +++ trunk/BRugs/tests/functions.R 2011-12-30 18:33:23 UTC (rev 237) @@ -5,6 +5,8 @@ library("BRugs") exfiles <- dir(options()$OpenBUGSExamples, pattern="^Rats.*txt$", full.names=TRUE) ok <- file.copy(exfiles, tempdir()) +if(!all(ok)) + stop("Some files could not be copied from OpenBUGS examples to the temporary directory") setwd(tempdir()) ## .onLoad(lib=.libPaths()[1], pkg="BRugs") # if developing without using namespace Modified: trunk/BRugs/tests/functions.Rout.save =================================================================== --- trunk/BRugs/tests/functions.Rout.save 2011-12-30 17:36:42 UTC (rev 236) +++ trunk/BRugs/tests/functions.Rout.save 2011-12-30 18:33:23 UTC (rev 237) @@ -1,5 +1,5 @@ -R version 2.13.1 Patched (2011-07-20 r56455) +R version 2.14.1 (2011-12-22) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i386-pc-mingw32/i386 (32-bit) @@ -23,6 +23,8 @@ + library("BRugs") + exfiles <- dir(options()$OpenBUGSExamples, pattern="^Rats.*txt$", full.names=TRUE) + ok <- file.copy(exfiles, tempdir()) ++ if(!all(ok)) ++ stop("Some files could not be copied from OpenBUGS examples to the temporary directory") + setwd(tempdir()) + ## .onLoad(lib=.libPaths()[1], pkg="BRugs") # if developing without using namespace + @@ -141,8 +143,8 @@ + ## Info functions + stopifnot(infoNodeMethods("alpha")[,"Type"] == "UpdaterNormal.StdUpdater") + stopifnot(infoNodeTypes("alpha")[1,"Type"]=="GraphNormal.Node") -+ stopifnot(infoUpdatersbyName()["alpha.c","Type"]=="conjugatenormalupdater") -+ stopifnot(infoUpdatersbyDepth()["alpha.c","Type"]=="conjugatenormalupdater") ++ stopifnot(infoUpdatersbyName()["alpha.c","Type"]=="conjugate normal updater") ++ stopifnot(infoUpdatersbyDepth()["alpha.c","Type"]=="conjugate normal updater") + mem <- infoMemory() + stopifnot(is.numeric(mem) && mem > 0) + stopifnot(any(infoModules()[,"Module"] == "Kernel")) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <li...@us...> - 2011-12-30 17:36:48
|
Revision: 236 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=236&view=rev Author: ligges Date: 2011-12-30 17:36:42 +0000 (Fri, 30 Dec 2011) Log Message: ----------- make gcc 4.6.2 happy Modified Paths: -------------- trunk/BRugs/src/BugsHelper.c Modified: trunk/BRugs/src/BugsHelper.c =================================================================== --- trunk/BRugs/src/BugsHelper.c 2011-12-30 16:40:33 UTC (rev 235) +++ trunk/BRugs/src/BugsHelper.c 2011-12-30 17:36:42 UTC (rev 236) @@ -72,7 +72,7 @@ #define NODEBUG /* OpenBUGS API functions from libOpenBUGS.so */ -int errno; +#include <errno.h> extern void CLI (); extern void BugsCmd(char **command, int *len); extern void CharArray (char **procedure, int *len, char **x, int *lenX, int *res); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <li...@us...> - 2011-12-30 16:40:39
|
Revision: 235 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=235&view=rev Author: ligges Date: 2011-12-30 16:40:33 +0000 (Fri, 30 Dec 2011) Log Message: ----------- Windows: - adaption in Makefile.win to derive path automagically - hence we can get rid of non empty configure - get rid of meaningless exec subdir - avoid copying of dlls into BRugs but always use the OpenBUGS installation - dirty hack to set the PATH so that the Helper finds the dll under 64-bit Modified Paths: -------------- trunk/BRugs/R/windows/zzz.i386.R trunk/BRugs/R/windows/zzz.x64.R trunk/BRugs/configure.win trunk/BRugs/src/Makefile.win Removed Paths: ------------- trunk/BRugs/R/windows/zzz.x64.R.in trunk/BRugs/configure.win.R trunk/BRugs/exec/ Modified: trunk/BRugs/R/windows/zzz.i386.R =================================================================== --- trunk/BRugs/R/windows/zzz.i386.R 2011-12-30 16:32:10 UTC (rev 234) +++ trunk/BRugs/R/windows/zzz.i386.R 2011-12-30 16:40:33 UTC (rev 235) @@ -1,40 +1,39 @@ -".onLoad.i386" <- function(lib, pkg){ - ob <- findOpenBUGS() - loadOpenBUGS(ob$dir) - msg <- paste("Welcome to BRugs connected to OpenBUGS") - if (!is.na(ob$version)) - msg <- paste(msg, "version", ob$version) - else msg <- paste(msg, "in directory", ob$dir) - packageStartupMessage(msg) -} - -".onUnload.i386" <- function(libpath){ - if(is.loaded("CmdInterpreter")) { - libname <- paste(options()$OpenBUGS, "libOpenBUGS.dll", sep="/") - dyn.unload(libname) - } -} - -## Load OpenBUGS from specified location -loadOpenBUGS <- function(dir) { - libname <- paste(dir, "libOpenBUGS.dll", sep="/") - if (!file.exists(libname)) { - warning("Shared library \"libOpenBUGS.dll\" not found in ", dir) - return(FALSE) - } - options(OpenBUGS = dir) - dyn.load(libname) - len <- nchar(dir) - .C("SetWorkingDir", as.character(dir), len) - ## Set temporary dir for "buffer.txt" output - tempDir <- gsub("\\\\", "/", tempdir()) - .C("SetTempDir", as.character(tempDir), nchar(tempDir)) - command <- "BugsMappers.SetDest(2)" - .CmdInterpreter(command) - if(is.null(getOption("BRugsVerbose"))) - options("BRugsVerbose" = TRUE) - .initGlobals() - options(OpenBUGSExamples = paste(dir, "Examples", sep="/")) - invisible() -} - +".onLoad.i386" <- function(lib, pkg){ + ob <- findOpenBUGS() + loadOpenBUGS(ob$dir) + msg <- paste("Welcome to BRugs connected to OpenBUGS") + if (!is.na(ob$version)) + msg <- paste(msg, "version", ob$version) + else msg <- paste(msg, "in directory", ob$dir) + packageStartupMessage(msg) +} + +".onUnload.i386" <- function(libpath){ + if(is.loaded("CmdInterpreter")) { + libname <- paste(options()$OpenBUGS, "libOpenBUGS.dll", sep="/") + dyn.unload(libname) + } +} + +## Load OpenBUGS from specified location +loadOpenBUGS <- function(dir) { + libname <- paste(dir, "libOpenBUGS.dll", sep="/") + if (!file.exists(libname)) { + warning("Shared library \"libOpenBUGS.dll\" not found in ", dir) + return(FALSE) + } + options(OpenBUGS = dir) + dyn.load(libname) + len <- nchar(dir) + .C("SetWorkingDir", as.character(dir), len, PACKAGE="libOpenBUGS") + ## Set temporary dir for "buffer.txt" output + tempDir <- gsub("\\\\", "/", tempdir()) + .C("SetTempDir", as.character(tempDir), nchar(tempDir), PACKAGE="libOpenBUGS") + command <- "BugsMappers.SetDest(2)" + .CmdInterpreter(command) + if(is.null(getOption("BRugsVerbose"))) + options("BRugsVerbose" = TRUE) + .initGlobals() + options(OpenBUGSExamples = paste(dir, "Examples", sep="/")) + invisible() +} Modified: trunk/BRugs/R/windows/zzz.x64.R =================================================================== --- trunk/BRugs/R/windows/zzz.x64.R 2011-12-30 16:32:10 UTC (rev 234) +++ trunk/BRugs/R/windows/zzz.x64.R 2011-12-30 16:40:33 UTC (rev 235) @@ -4,19 +4,23 @@ ## TODO any need for these to be user specifiable? options("BRugsTmpdir" = gsub("\\\\", "/", tempdir())) options("BRugsExtFile" = paste(basename(tempfile()), ".bug", sep="")) - options(OpenBUGS = "C:/Program Files (x86)/OpenBUGS/OpenBUGS321") - options(OpenBUGSdoc = "C:/Program Files (x86)/OpenBUGS/OpenBUGS321") - options(OpenBUGSExamples = paste(options()$OpenBUGSdoc, "Examples", sep="/")) + ob <- findOpenBUGS() + options(OpenBUGS = ob$dir) + options(OpenBUGSdoc = ob$dir) + options(OpenBUGSExamples = paste(ob$dir, "Examples", sep="/")) if(is.null(getOption("BRugsVerbose"))) options("BRugsVerbose" = TRUE) .initGlobals() - ob <- findOpenBUGS() msg <- paste("Welcome to BRugs connected to OpenBUGS") if (!is.na(ob$version)) msg <- paste(msg, " version ", ob$version) else msg <- paste(msg, " in directory ", ob$dir) packageStartupMessage(msg) + pathtoBUGS <- gsub("/", "\\", ob$dir) + oldpath <- Sys.getenv("PATH") + if(!length(grep(pathtoBUGS, oldpath, fixed=TRUE))) + Sys.setenv(PATH=paste(oldpath, pathtoBUGS, sep=";")) } ".onUnload.x64" <- function(libpath){ Deleted: trunk/BRugs/R/windows/zzz.x64.R.in =================================================================== --- trunk/BRugs/R/windows/zzz.x64.R.in 2011-12-30 16:32:10 UTC (rev 234) +++ trunk/BRugs/R/windows/zzz.x64.R.in 2011-12-30 16:40:33 UTC (rev 235) @@ -1,25 +0,0 @@ -if (is.R()){ - - ".onLoad" <- function(lib, pkg){ - ## TODO any need for these to be user specifiable? - options("BRugsTmpdir" = gsub("\\\\", "/", tempdir())) - options("BRugsExtFile" = paste(basename(tempfile()), ".bug", sep="")) - options(OpenBUGS = "@OPENBUGS@") - options(OpenBUGSdoc = "@OPENBUGSDOC@") - options(OpenBUGSExamples = paste(options()$OpenBUGSdoc, "Examples", sep="/")) - - if(is.null(getOption("BRugsVerbose"))) - options("BRugsVerbose" = TRUE) - .initGlobals() - ob <- findOpenBUGS() - msg <- paste("Welcome to BRugs connected to OpenBUGS") - if (!is.na(ob$version)) - msg <- paste(msg, "version", ob$version) - else msg <- paste(msg, "in directory", ob$dir) - packageStartupMessage(msg) - } - - ".onUnload" <- function(libpath){ - } - -} Modified: trunk/BRugs/configure.win =================================================================== --- trunk/BRugs/configure.win 2011-12-30 16:32:10 UTC (rev 234) +++ trunk/BRugs/configure.win 2011-12-30 16:40:33 UTC (rev 235) @@ -1,13 +0,0 @@ -## Configure script only needed for 64 bit Windows, where BRugs calls -## the 32-bit OpenBUGS library via a helper application. First find -## the location of the OpenBUGS installation. - -OPENBUGS=`"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" configure.win.R` - -## Install the OpenBUGS DLL into the package. There is no Windows -## equivalent of $rpath for adding to the dynamic link path, therefore -## the DLL is installed in the same directory as the helper -## executable. - -OPENBUGSLIB="$OPENBUGS/libOpenBUGS.dll" -cp "$OPENBUGSLIB" exec Deleted: trunk/BRugs/configure.win.R =================================================================== --- trunk/BRugs/configure.win.R 2011-12-30 16:32:10 UTC (rev 234) +++ trunk/BRugs/configure.win.R 2011-12-30 16:40:33 UTC (rev 235) @@ -1,20 +0,0 @@ -## Find OpenBUGS installation location -source("R/windows/findOpenBUGS.R") -OPENBUGS <- findOpenBUGS()$dir -OPENBUGS <- gsub("\\\\","/",OPENBUGS) - -dummy <- file.copy("src/Makevars.in","src/Makefile.win", overwrite=TRUE) -x <- readLines("src/Makefile.win") -x <- gsub("@OPENBUGS@", dQuote(OPENBUGS), x, fixed=TRUE) -x <- gsub("@DYNLIBEXT@", "dll", x, fixed=TRUE) -writeLines(x, "src/Makefile.win") - -dummy <- file.copy("R/windows/zzz.x64.R.in","R/windows/zzz.x64.R", overwrite=TRUE) -x <- readLines("R/windows/zzz.x64.R") -x <- gsub("@OPENBUGS@", OPENBUGS, x, fixed=TRUE) -x <- gsub("@OPENBUGSDOC@", OPENBUGS, x, fixed=TRUE) -x <- gsub("\".onLoad\"[[:space:]]*<-[[:space:]]*function", "\".onLoad.x64\" <- function", x) -x <- gsub("\".onUnload\"[[:space:]]*<-[[:space:]]*function", "\".onUnload.x64\" <- function", x) -writeLines(x, "R/windows/zzz.x64.R") - -cat(OPENBUGS) Modified: trunk/BRugs/src/Makefile.win =================================================================== --- trunk/BRugs/src/Makefile.win 2011-12-30 16:32:10 UTC (rev 234) +++ trunk/BRugs/src/Makefile.win 2011-12-30 16:40:33 UTC (rev 235) @@ -1,6 +1,7 @@ -BUGS_LIBS = "C:/Program Files (x86)/OpenBUGS/OpenBUGS321"/libOpenBUGS.dll -BUGS_LDFLAGS = -m32 -Wl,-rpath="C:/Program Files (x86)/OpenBUGS/OpenBUGS321" +BUGS_PATH = `"${R_HOME}/bin${R_ARCH_BIN}/Rscript" -e "source('../R/windows/findOpenBUGS.R');cat(findOpenBUGS()[['dir']])"` +BUGS_LIBS = "$(BUGS_PATH)/libOpenBUGS.dll" +BUGS_LDFLAGS = -m32 -Wl,-rpath="$(BUGS_PATH)" BugsHelper: - mkdir -p ../exec - $(CC) $(CFLAGS) $(LDFLAGS) $(BUGS_LDFLAGS) BugsHelper.c $(BUGS_LIBS) -o ../exec/BugsHelper + mkdir -p $(R_PACKAGE_DIR)/exec + $(CC) $(CFLAGS) $(LDFLAGS) $(BUGS_LDFLAGS) BugsHelper.c $(BUGS_LIBS) -o $(R_PACKAGE_DIR)/exec/BugsHelper This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <li...@us...> - 2011-12-30 16:32:16
|
Revision: 234 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=234&view=rev Author: ligges Date: 2011-12-30 16:32:10 +0000 (Fri, 30 Dec 2011) Log Message: ----------- protection for nonsense Modified Paths: -------------- trunk/BRugs/src/BugsHelper.c Modified: trunk/BRugs/src/BugsHelper.c =================================================================== --- trunk/BRugs/src/BugsHelper.c 2011-12-30 16:16:46 UTC (rev 233) +++ trunk/BRugs/src/BugsHelper.c 2011-12-30 16:32:10 UTC (rev 234) @@ -330,6 +330,9 @@ case '4': do_BugsCmd(cmd); break; + default: + printf("Unsensible input: command type %c\n", cmd_type); + break; } if (res > 0) return res; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <li...@us...> - 2011-12-30 16:16:52
|
Revision: 233 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=233&view=rev Author: ligges Date: 2011-12-30 16:16:46 +0000 (Fri, 30 Dec 2011) Log Message: ----------- S-PLUS compatibility, keep in sync with current configure Modified Paths: -------------- trunk/BRugs/DESCRIPTION Modified: trunk/BRugs/DESCRIPTION =================================================================== --- trunk/BRugs/DESCRIPTION 2011-12-30 15:58:24 UTC (rev 232) +++ trunk/BRugs/DESCRIPTION 2011-12-30 16:16:46 UTC (rev 233) @@ -1,11 +1,11 @@ Package: BRugs Title: R interface to the OpenBUGS MCMC software -Version: 0.8-0 +Version: 0.7-4 Date: 2011-12-30 Author: OpenBUGS was developed by Andrew Thomas, Dave Lunn, David Spiegelhalter and Nicky Best. R interface developed by Uwe Ligges, Sibylle Sturtz, Andrew Gelman, Gregor Gorjanc and Chris Jackson. Linux port and most recent developments by Chris Jackson. Description: Fully-interactive R interface to the OpenBUGS software for Bayesian analysis using MCMC sampling Maintainer: Uwe Ligges <li...@st...> -Depends: R (>= 2.11.0) +Depends: R (>= 2.11.0), coda Imports: utils, coda SystemRequirements: OpenBUGS (>= 3.2.1), hence Windows or Linux License: GPL-2 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <li...@us...> - 2011-12-30 15:58:30
|
Revision: 232 http://bugs-r.svn.sourceforge.net/bugs-r/?rev=232&view=rev Author: ligges Date: 2011-12-30 15:58:24 +0000 (Fri, 30 Dec 2011) Log Message: ----------- prepare for publication Modified Paths: -------------- trunk/BRugs/DESCRIPTION Modified: trunk/BRugs/DESCRIPTION =================================================================== --- trunk/BRugs/DESCRIPTION 2011-12-30 15:56:37 UTC (rev 231) +++ trunk/BRugs/DESCRIPTION 2011-12-30 15:58:24 UTC (rev 232) @@ -1,11 +1,12 @@ Package: BRugs Title: R interface to the OpenBUGS MCMC software -Version: 0.7-2 -Date: 2011-08-24 +Version: 0.8-0 +Date: 2011-12-30 Author: OpenBUGS was developed by Andrew Thomas, Dave Lunn, David Spiegelhalter and Nicky Best. R interface developed by Uwe Ligges, Sibylle Sturtz, Andrew Gelman, Gregor Gorjanc and Chris Jackson. Linux port and most recent developments by Chris Jackson. Description: Fully-interactive R interface to the OpenBUGS software for Bayesian analysis using MCMC sampling Maintainer: Uwe Ligges <li...@st...> -Depends: R (>= 2.11.0), utils, coda -SystemRequirements: OpenBUGS (>= 3.2.1), hence ix86 Windows or Linux +Depends: R (>= 2.11.0) +Imports: utils, coda +SystemRequirements: OpenBUGS (>= 3.2.1), hence Windows or Linux License: GPL-2 URL: http://www.openbugs.info/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |