[R] R2WinBugs

Andrew Gelman gelman at stat.columbia.edu
Tue Aug 22 15:01:29 CEST 2006


We had set R2WinBugs to use the burnin as the adaptive phase.  I think 
this was changed very slightly in the latest version of R2WinBUGS so 
that the adaptive phase would equal burnin minus 1.  This was to allow 
DIC to be calculated.  So I think it should work OK now.  If you send an 
example I can take a look.

Andrew

Uwe Ligges wrote:

>
>
> Bowden, J.M. wrote:
>
>> Hi all,
>>
>>
>> I am having problems using the R2Winbugs function
>>
>> When I perform an analysis directly in Winbugs I can specify that the
>> first 'n' iterations are to be done using an 'adaptive' phase. After
>> this phase the markov chain seems to mix a lot better.
>>
>>
>> I don't seem to be able to specify R2winbugs to carry out this adaptive
>> phase, I can just specify the burnin length but this (to my knowledge)
>> is not the same thing.
>>
>> As a result my models are not fitting as well as I would like, has
>> anyone had a similar experience?
>
>
> I think this is a question for Andrew Gelman (CCing), who wrote the 
> underlying code for automatically setting the adaptive phase.
>
> Uwe Ligges
>
>
>> Jack
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch 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.
>

-- 
Andrew Gelman
Professor, Department of Statistics
Professor, Department of Political Science
gelman at stat.columbia.edu
www.stat.columbia.edu/~gelman

Statistics department office:
  Social Work Bldg (Amsterdam Ave at 122 St), Room 1016
  212-851-2142
Political Science department office:
  International Affairs Bldg (Amsterdam Ave at 118 St), Room 731
  212-854-7075

Mailing address:
  1255 Amsterdam Ave, Room 1016
  Columbia University
  New York, NY 10027-5904
  212-851-2142
  (fax) 212-851-2164



More information about the R-help mailing list