Description Usage Arguments Details Value Examples

Returns a dataframe with the MCMC samples from a Bayesian First Aid Object. The samples does not include the burn in phase and all chains are collapsed in the resulting data frame.

1 2 | ```
## S3 method for class 'bayesian_first_aid'
as.data.frame(x, ...)
``` |

`x` |
The output from a Bayesian First Aid model. |

`...` |
Not used. |

In the case where there are many parameters with the same name but different index (for example, mu[1], mu[2], mu[3], etc.) these names will be rewritten by removing the brackets (that is, mu[1] -> mu1, mu[2] -> mu2, sigma[1,2] -> sigma12, etc.).

A data frame with one column per parameter.

1 2 3 | ```
fit <- bayes.t.test(rnorm(10), rnorm(10))
d <- as.data.frame(fit)
mean(d$mu_x)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.