tidy.ipd {ipd}R Documentation

Tidy an IPD Fit

Description

Tidies the IPD method/model fit into a data frame.

Usage

## S3 method for class 'ipd'
tidy(x, ...)

Arguments

x

An object of class ipd.

...

Additional arguments to be passed to the tidy function.

Value

A tidy data frame of the model's coefficients.

Examples


#-- Generate Example Data

set.seed(2023)

dat <- simdat(n = c(300, 300, 300), effect = 1, sigma_Y = 1)

head(dat)

formula <- Y - f ~ X1

#-- Fit IPD

fit <- ipd(formula, method = "postpi_analytic", model = "ols",

  data = dat, label = "set")

#-- Tidy Output

tidy(fit)


[Package ipd version 0.1.3 Index]