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

Description Usage Arguments Value See Also Examples

View source: R/posterior_linpred.R

Description

Extract the posterior draws of the linear predictor, possibly transformed by the inverse-link function. See posterior_linpred.stanreg in the rstanarm package for an example.

Usage

1

Arguments

object

The object to use.

transform

Should the linear predictor be transformed using the inverse-link function? The default is FALSE, in which case the untransformed linear predictor is returned.

...

Arguments passed to methods. See the methods in the rstanarm package for examples.

Value

posterior_linpred 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

Examples

1
# See help("posterior_linpred", package = "rstanarm")

stan-dev/rstantools documentation built on Aug. 21, 2018, 1:10 p.m.