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

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

## End(Not run)

RStanTVA documentation built on Dec. 17, 2025, 1:06 a.m.