Learn R Programming

parameters (version 0.6.0)

print: Print model parameters

Description

A print()-method for objects from model_parameters().

Usage

# S3 method for parameters_model
print(x, pretty_names = TRUE, split_components = TRUE, select = NULL, ...)

Arguments

x

An object returned by model_parameters().

pretty_names

Pretty parameters' names.

split_components

Logical, if TRUE (default), For models with multiple components (zero-inflation, smooth terms, ...), each component is printed in a separate table. If FALSE, model parameters are printed in a single table and a Component column is added to the output.

select

Character vector (or numeric index) of column names that should be printed. If NULL (default), all columns are printed.

...

Arguments passed to or from other methods.

Value

NULL

Examples

Run this code
# NOT RUN {
library(parameters)
if (require("glmmTMB")) {
  model <- glmmTMB(
    count ~ spp + mined + (1 | site),
    ziformula = ~mined,
    family = poisson(),
    data = Salamanders
  )
  mp <- model_parameters(model)

  print(mp, pretty_names = FALSE)

  print(mp, split_components = FALSE)

  print(mp, select = c("Parameter", "Coefficient", "CI_low", "CI_high"))
}
# }

Run the code above in your browser using DataLab