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