View source: R/postestimation.R
posterior_linpred.hsstan | R Documentation |
Extract the posterior draws of the linear predictor, possibly transformed by the inverse-link function.
## 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.
# 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.