tidy.ipd | R Documentation |
Tidies the IPD method/model fit into a data frame.
## S3 method for class 'ipd'
tidy(x, ...)
x |
An object of class |
... |
Additional arguments to be passed to the tidy function. |
A tidy data frame of the model's coefficients.
#-- 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_label")
#-- Tidy Output
tidy(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.