Learn R Programming

ipd (version 0.4.0)

augment.ipd: Augment data from an ipd fit

Description

Augment data from an ipd fit

Usage

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

Value

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

Arguments

x

An object of class ipd.

data

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

...

Ignored.

Examples

Run this code

dat <- simdat()

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

    data = dat, label = "set_label")

augmented_df <- augment(fit)

head(augmented_df)

Run the code above in your browser using DataLab