Re: [R] bug in R2WinBUGS

2009-01-31 Thread Mike Meredith

Problem with the change is that none of our old scripts work! If the
model.file is in R's current working directory we either have to use
working.directory=getwd() or specify a full path with
model.file=file.path(getwd(), "mymodel.bug").

It would be really nice if 'bugs' looked in R's c.w.d. for input files -- in
particular model.file -- while still putting its temporary files in a
tempdir.

Cheers, Mike.


Uwe Ligges-3 wrote:
> 
> 
> 
> John Smith wrote:
>> In newest version of R2WinBUGS, the default directory is changed to
>> working.directory, but never changed back once finished bugs call.
> 
> Now finally fixed, thanks again for the report and sorry for the delay.
> 
> Best,
> Uwe
> 
> 
> 
> 
>>  [[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.
> 
> __
> 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.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/bug-in-R2WinBUGS-tp21377525p21761975.html
Sent from the R help mailing list archive at Nabble.com.

__
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.


Re: [R] how to find "p" in binomial(n,p)

2007-09-19 Thread Mike Meredith


I think the function you need is 'help.search'; try:

help.search("binomial")

and look for something obvious in the 'stats' package. A good deal quicker
and easier than posting to an internet forum!

Cheers, Mike.


cathelf wrote:
> 
> Dear all,
> 
> I am trying a find the value "p" in binomial.
> 
> X ~ Bin(n,p)
> 
> I want to find the value "p", so that Pr(X <= k) <= alpha 
> 
> Here, n, k and alpha are known. n, k are integers. alpha is between (0,1).
> 
> Thanks a lot!
> 
> Catherine
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-find-%22p%22-in-binomial%28n%2Cp%29-tf4484227.html#a12787900
Sent from the R help mailing list archive at Nabble.com.

__
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.