fitted.tulpa_fit: Fitted values (population level)

View source: R/methods_generic.R

fitted.tulpa_fitR Documentation

Fitted values (population level)

Description

In-sample mean response from the fixed effects and the observation offset (⁠E[y] = g^{-1}(X beta + offset)⁠, trial-scaled for binomial). Random effects are held at their prior mean of zero; group-level effects are in ranef(). y - fitted(object) equals residuals(object, type = "response"). On a zero-inflated fit (ziformula) the mean is the mixture's, ⁠(1 - pi) E[y | eta]⁠ with ⁠pi = plogis(X_zi beta_zi)⁠; over a zero-truncated family that is the hurdle mean.

Usage

## S3 method for class 'tulpa_fit'
fitted(object, ...)

Arguments

object

A tulpa_fit object (must carry ⁠$model_matrix⁠).

...

Ignored.

Value

Numeric vector of fitted mean responses, length nobs.


tulpa documentation built on Oct. 19, 2026, 5:09 p.m.