Trevor,

Thanks for your reply.
That doesnot help

Any other suggestions?
Anamika

On Tue, Aug 10, 2010 at 11:58 AM, Trevor Davies <tdav...@mathstat.dal.ca>wrote:

> I think you need to load is R2WinBUGS again.
>
> require(R2WinBUGS)
>
> Trevor
>
> > Hi All:
> >
> > I am getting an error while trying to plot in R2Winbugs
> >
> > *Error in plot.window(...) : need finite 'xlim' values
> > In addition: Warning messages:
> > 1: In min(x) : no non-missing arguments to min; returning Inf
> > 2: In max(x) : no non-missing arguments to max; returning -Inf
> > 3: In min(x) : no non-missing arguments to min; returning Inf
> > 4: In max(x) : no non-missing arguments to max; returning -Inf*
> >
> > Following is the code I am using
> > library("R2WinBUGS")
> >
> > #Set working directory
> > setwd("E://Achaudhuri/Trial")
> > trial.data <- read.table("trial_data.txt", header=T)
> > bugs.output <- list()
> > for(i in 1:5){
> >        nausea <- as.integer(trial.data[i,])
> >        bugs.output[[i]] <- bugs(
> >        data=list(nausea=nausea, N=63),
> >        inits=list(
> >                list(alpha0=0,tau=1),
> >                list(alpha0=0.9, tau=1),
> >                list(alpha0=0.8,tau=1)
> >                ),
> >        model.file="B-LN_model_trial.txt",
> >        parameters.to.save = c("sigma", "tau","alpha0","p"),
> > n.chains=3, n.iter=12000, n.burnin=5000,
> > bugs.directory="E:/AChaudhuri/winbugs14/WinBUGS14")}
> > print(bugs.output)
> > plot(bugs.output)
> > Thanks
> > Anamika
> >
> > -------------------------------------------------------------------
> > This list is for discussion of modelling issues and the BUGS software.
> > For help with crashes and error messages, first mail
> > b...@mrc-bsu.cam.ac.uk
> > To mail the BUGS list, mail to b...@jiscmail.ac.uk
> > Before mailing, please check the archive at
> > www.jiscmail.ac.uk/lists/bugs.html
> > Please do not mail attachments to the list.
> > To leave the BUGS list, send LEAVE BUGS to jiscm...@jiscmail.ac.uk
> > If this fails, mail bugs-requ...@jiscmail.ac.uk, NOT the whole list
> >
>
>
> --
> Trevor Davies
> Ph.D. Candidate
> Department of Biological Sciences
> 1355 Oxford Street
> Dalhousie University
> Halifax, Nova Scotia, Canada, B3H 4J1
> ph: (902) 494 3910: fax (902) 494 3736
>
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to