Learn R Programming

ipd (version 0.1.4)

print.ipd: Print IPD Fit

Description

Prints a brief summary of the IPD method/model combination.

Usage

# S3 method for ipd
print(x, ...)

Value

The input x, invisibly.

Arguments

x

An object of class ipd.

...

Additional arguments to be passed to the print function.

Examples

Run this code

#-- 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")

#-- Print Output

print(fit)

Run the code above in your browser using DataLab