fitted,stantvafit-method | R Documentation |
Returns the fitted values for latent model parameters. This is identical to calling predict()
without new data.
## S4 method for signature 'stantvafit'
fitted(object, variables = names(object@stanmodel@code@df))
object |
The StanTVA fit object. |
variables |
The names of the parameters to retrieve. |
The fitted values.
p <- fitted(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.