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


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


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