Learn R Programming

bayesics (version 2.0.2)

print: Print bayesics objects.

Description

Print bayesics objects.

Usage

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

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

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

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

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

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

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

Value

None

Arguments

x

an object used to select a method.

...

optional arguments.

Examples

Run this code
# \donttest{
set.seed(2025)
N = 500
test_data <-
  data.frame(x1 = rnorm(N),
             x2 = rnorm(N),
             x3 = letters[1:5])
test_data$outcome <-
  rnorm(N,-1 + test_data$x1 + 2 * (test_data$x3 %in% c("d","e")) )
fit1 <-
  lm_b(outcome ~ x1 + x2 + x3,
       data = test_data)
print(fit1)
# }

Run the code above in your browser using DataLab