predict,stantvafit-method | R Documentation |
Returns the predictions for latent model parameters.
## S4 method for signature 'stantvafit'
predict(object, newdata, variables = names(object@stanmodel@code@df))
object |
The StanTVA fit object. |
newdata |
The new data (leave empty to use fitted data). |
variables |
The names of the parameters to predict. |
The predictions.
p <- predict(fit, variables = c("C","K"))
colMeans(p$C)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.