Learn R Programming

report (version 0.1.0)

model_table: Table Summary

Description

Create a reportable table (no pun intended) for your model.

Usage

model_table(model, ...)

# S3 method for default model_table(model, ...)

# S3 method for stanreg model_table(model, ci_method = "hdi", verbose = FALSE, ...)

Arguments

model

A statistical model.

...

Arguments passed to other methods, in particular model_parameters().

ci_method

The type of index used for Credible Interval. Can be "HDI" (default, see hdi), "ETI" (see eti) or "SI" (see si).

verbose

Toggle warnings.

Value

A list with elements of class report_table (which are data frame), containing a short and long version of the table output of the model summary.

Examples

Run this code
# NOT RUN {
model <- lm(Sepal.Length ~ Petal.Width, data = iris)
model_table(model)
summary(model_table(model))

model <- t.test(Sepal.Length ~ Species, data = iris[1:100, ])
model_table(model)
summary(model_table(model))
# }

Run the code above in your browser using DataLab