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