predict,stantvafit-method {RStanTVA} | R Documentation |
Predict parameter values
Description
Returns the predictions for latent model parameters.
Usage
## S4 method for signature 'stantvafit'
predict(object, newdata, variables = names(object@stanmodel@code@df))
Arguments
object |
The StanTVA fit object. |
newdata |
The new data (leave empty to use fitted data). |
variables |
The names of the parameters to predict. |
Value
The predictions.
Examples
p <- predict(fit, variables = c("C","K"))
colMeans(p$C)
[Package RStanTVA version 0.3.0 Index]