R: Generic function for accessing the posterior distribution of...

posterior_epred {rstantools} | R Documentation

## Generic function for accessing the posterior distribution of the conditional expectation

### Description

Extract the posterior draws of the conditional expectation. See the rstanarm package for an example.

### Usage

    posterior_epred(object, ...)

### Arguments

`object` | The object to use.
`...` | Arguments passed to methods. See the methods in the rstanarm package for examples.

### Value

`posterior_epred()` methods should return a D by N matrix, where D is the number of draws from the posterior distribution distribution and N is the number of data points.

### See Also

- The rstanarm package (mc-stan.org/rstanarm) for example methods (CRAN, GitHub).

- Guidelines and recommendations for developers of R packages interfacing with Stan and a demonstration getting a simple package working can be found in the vignettes included with rstantools and at mc-stan.org/rstantools/articles.

[Package rstantools version 2.1.1 Index]