fitted-stantvafit-method: Retrieve fitted parameter values

fitted,stantvafit-methodR 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

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

## End(Not run)

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