posterior_linpred.hsstan: Posterior distribution of the linear predictor

Description Usage Arguments Value Examples

View source: R/postestimation.R

Description

Extract the posterior draws of the linear predictor, possibly transformed by the inverse-link function.

Usage

1
2
## S3 method for class 'hsstan'
posterior_linpred(object, transform = FALSE, newdata = NULL, ...)

Arguments

object

An object of class hsstan.

transform

Whether the linear predictor should be transformed using the inverse-link function (FALSE by default).

newdata

Optional data frame containing the variables to use to predict. If NULL (default), the model matrix is used. If specified, its continuous variables should be standardized, since the model coefficients are learnt on standardized data.

...

Currently ignored.

Value

A matrix of size S by N, where S is the number of draws from the posterior distribution of the (transformed) linear predictor, and N is the number of data points.

Examples

1
2
# continued from ?hsstan
posterior_linpred(hs.biom)

hsstan documentation built on Sept. 16, 2021, 9:11 a.m.