augment.ipd: Augment data from an ipd fit

View source: R/methods.R

augment.ipdR Documentation

Augment data from an ipd fit

Description

Augment data from an ipd fit

Usage

## S3 method for class 'ipd'
augment(x, data = x@data_u, ...)

Arguments

x

An object of class ipd.

data

A data.frame to augment; defaults to x@data_u.

...

Ignored.

Value

The data.frame with columns .fitted and .resid.

Examples


dat <- simdat()

fit <- ipd(Y - f ~ X1, method = "pspa", model = "ols",

    data = dat, label = "set_label")

augmented_df <- augment(fit)

head(augmented_df)


ipd documentation built on March 11, 2026, 5:07 p.m.