Description Usage Arguments Value Examples
View source: R/postestimation.R
Extract the posterior draws of the linear predictor, possibly transformed by the inverse-link function.
1 2 | ## S3 method for class 'hsstan'
posterior_linpred(object, transform = FALSE, newdata = NULL, ...)
|
object |
An object of class |
transform |
Whether the linear predictor should be transformed using
the inverse-link function ( |
newdata |
Optional data frame containing the variables to use to
predict. If |
... |
Currently ignored. |
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.
1 2 | # continued from ?hsstan
posterior_linpred(hs.biom)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.