powered by
Augment data from an ipd fit
# S3 method for ipd augment(x, data = x@data_u, ...)
The data.frame with columns .fitted and .resid.
data.frame
.fitted
.resid
An object of class ipd.
ipd
A data.frame to augment; defaults to x@data_u.
x@data_u
Ignored.
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