insight0.20.4 package

Easy Access to Model Information for Various Model Objects

all_models_equal

Checks if all objects are models of same class

check_if_installed

Checking if needed package is installed

clean_names

Get clean names of model terms

clean_parameters

Get clean names of model parameters

color_if

Color-formatting for data columns based on condition

compact_character

Remove empty strings from character

compact_list

Remove empty elements from lists

display

Generic export of data frames into formatted tables

dot-colour_detect

Detect coloured cells

download_model

Download circus models

ellipsis_info

Gather information about objects in ellipsis (dot dot dot)

export_table

Data frame and Tables Pretty Formatting

find_algorithm

Find sampling algorithm and optimizers

find_formula

Find model formula

find_interactions

Find interaction terms from models

find_offset

Find possible offset terms in a model

find_parameters.averaging

Find model parameters from models with special components

find_parameters.betamfx

Find names of model parameters from marginal effects models

find_parameters.BGGM

Find names of model parameters from Bayesian models

find_parameters.emmGrid

Find model parameters from estimated marginal means objects

find_parameters.gamlss

Find names of model parameters from generalized additive models

find_parameters.glmmTMB

Find names of model parameters from mixed models

find_parameters

Find names of model parameters

find_parameters.zeroinfl

Find names of model parameters from zero-inflated models

find_predictors

Find names of model predictors

find_random_slopes

Find names of random slopes

find_random

Find names of random effects

find_response

Find name of the response variable

find_smooth

Find smooth terms from a model object

find_statistic

Find statistic for model

find_terms

Find all model terms

find_transformation

Find possible transformation of response variables

find_variables

Find names of all variables

find_weights

Find names of model weights

format_bf

Bayes Factor formatting

format_capitalize

Capitalizes the first letter in a string

format_ci

Confidence/Credible Interval (CI) Formatting

format_message

Format messages and warnings

format_number

Convert number to words

format_p

p-values formatting

format_pd

Probability of direction (pd) formatting

format_rope

Percentage in ROPE formatting

format_string

String Values Formatting

format_table

Parameter table formatting

format_value

Numeric Values Formatting

get_auxiliary

Get auxiliary parameters from models

get_call

Get the model's function call

get_data

Get the data that was used to fit the model

get_datagrid

Create a reference grid

get_deviance

Model Deviance

get_df

Extract degrees of freedom

get_family

A robust alternative to stats::family

get_intercept

Get the value at the intercept

get_loglikelihood

Log-Likelihood

get_modelmatrix

Model Matrix

get_parameters.betamfx

Get model parameters from marginal effects models

get_parameters.betareg

Get model parameters from models with special components

get_parameters.BGGM

Get model parameters from Bayesian models

get_parameters.emmGrid

Get model parameters from estimated marginal means objects

get_parameters.gamm

Get model parameters from generalized additive models

get_parameters.glmm

Get model parameters from mixed models

get_parameters.htest

Get model parameters from htest-objects

get_parameters

Get model parameters

get_parameters.zeroinfl

Get model parameters from zero-inflated and hurdle models

get_predicted_ci

Confidence intervals around predicted values

get_predicted

Model predictions (robust) and their confidence intervals

get_predictors

Get the data from model predictors

get_priors

Get summary of priors used for a model

get_random

Get the data from random effects

get_residuals

Extract model residuals

get_response

Get the values from the response variable

get_sigma

Get residual standard deviation from models

get_statistic

Get statistic associated with estimates

get_transformation

Return function of transformed response variables

get_varcov

Get variance-covariance matrix from models

get_variance

Get variance components from random effects models

get_weights

Get the values from model weights

has_intercept

Checks if model has an intercept

insight-package

insight: A Unified Interface to Access Information from Model Objects ...

is_converged

Convergence test for mixed effects models

is_empty_object

Check if object is empty

is_gam_model

Checks if a model is a generalized additive model

is_mixed_model

Checks if a model is a mixed effects model

is_model_supported

Checks if a regression model object is supported by the insight packag...

is_model

Checks if an object is a regression model or statistical test object

is_multivariate

Checks if an object stems from a multivariate response model

is_nested_models

Checks whether a list of models are nested models

is_nullmodel

Checks if model is a null-model (intercept-only)

link_function

Get link-function from model object

link_inverse

Get link-inverse function from model object

model_info

Access information from model objects

model_name

Name the model

n_grouplevels

Count number of random effect levels in a mixed model

n_obs

Get number of observations from a model

n_parameters

Count number of parameters in a model

null_model

Compute intercept-only model for regression models

object_has_names

Check names and rownames

print_color

Coloured console output

print_parameters

Prepare summary statistics of model parameters for printing

standardize_column_order

Standardize column order

standardize_names

Standardize column names

text_remove_backticks

Remove backticks from a string

trim_ws

Small helper functions

A tool to provide an easy, intuitive and consistent access to information contained in various R models, like model formulas, model terms, information about random effects, data that was used to fit the model or data from response variables. 'insight' mainly revolves around two types of functions: Functions that find (the names of) information, starting with 'find_', and functions that get the underlying data, starting with 'get_'. The package has a consistent syntax and works with many different model objects, where otherwise functions to access these information are missing.

  • Maintainer: Daniel Lüdecke
  • License: GPL-3
  • Last published: 2024-09-01