predict-stantvafit-method: Predict parameter values

predict,stantvafit-methodR Documentation

Predict parameter values

Description

Returns the predictions for latent model parameters.

Usage

## S4 method for signature 'stantvafit'
predict(object, newdata, variables = names(object@stanmodel@code@df))

Arguments

object

The StanTVA fit object.

newdata

The new data (leave empty to use fitted data).

variables

The names of the parameters to predict.

Value

The predictions.

Examples


p <- predict(fit, variables = c("C","K"))
colMeans(p$C)


RStanTVA documentation built on April 16, 2025, 5:10 p.m.