Re: [R] Retrieving samples when ussing BRugs.

2011-12-17 Thread Uwe Ligges
On 14.12.2011 10:44, Thiago Guerrera wrote: Hi Sacha, I was referring to the BRugs package, where I usually proceed as follows: result = BRugsFit (...) param_samples = samplesSample("param")(1) But (1) takes a long time for big chains. So my question was specific to BRugs, if there an a

Re: [R] Retrieving samples when ussing BRugs.

2011-12-14 Thread Thiago Guerrera
Hi Sacha, I was referring to the BRugs package, where I usually proceed as follows: result = BRugsFit (...) param_samples = samplesSample("param")(1) But (1) takes a long time for big chains. So my question was specific to BRugs, if there an alternative way to get the samples. openbugs() m

Re: [R] Retrieving samples when ussing BRugs.

2011-12-09 Thread Sacha Epskamp
If you obtain an output object with openbugs(), e.g.: samples <- openbugs( ... ) Then this is a list with all the parameters and samples. See names(samples). You can obtain the samples in a list with: samples[['sims.list']] Is this what you mean? On Fri, Dec 9, 2011 at 2:00 PM, Thiago Guerrera

[R] Retrieving samples when ussing BRugs.

2011-12-09 Thread Thiago Guerrera
Hello R users, I have used the R package BRugs in some applications but one thing that annoy me is the functions to retrieve samples ("samplesSample") or summary statistics ("samplesStats"). They take a really long time to return the values if the size of the chains in question is moderate, for ex