powered by
Returns the fitted values for latent model parameters. This is identical to calling predict() without new data.
predict()
# S4 method for stantvafit fitted(object, variables = names(object@stanmodel@code@df))
The fitted values.
The StanTVA fit object.
The names of the parameters to retrieve.
if (FALSE) { p <- fitted(fit, variables = c("C","K")) colMeans(p$C) }
Run the code above in your browser using DataLab