Skip to content

Releases: easystats/insight

insight 1.5.1

21 May 09:29
99c555c

Choose a tag to compare

Changes

  • New support for CmdStanFit models from the cmdstanr package -
    find_algorithm(), find_parameters(), and get_parameters() now work with
    these models.

  • model_info() now correctly detects t- and z-tests from package BSDA.

  • format_bf() gains a digits argument.

  • More informative error message when the response variable in get_response()
    is not present in the data.

  • format_table() now also formats columns for tail and bulk ESS from Bayesian
    models.

  • get_data() now supports objects of class mira from package mice.

  • get_varcov() now supports the option "fpc" to apply finite population
    correction (Lai et al. 2018).

  • Added a new function, vcovFPC(), to calculate finite-population-adjusted
    variance-covariance matrices.

Bug fixes

  • has_intercept() now correctly detects whether models from packages fixest
    and lfe have intercepts or not.

  • The vcov argument in get_varcov() was ignored when vcov was of class
    "dpoMatrix" and did not return TRUE to is.matrix().

insight 1.5.0

14 Apr 11:54
1db1c10

Choose a tag to compare

Changes

  • New function, get_simulated(), to return simulated values from the response
    of regression models, which is comparable to posterior predictions from a
    model.

  • Improved performance of find_parameters() for models from package mgcv
    that include random effects.

  • Improved performance of find_parameters() and get_statistic() for models
    from package mgcv that include random effects.

  • get_predicted() supports models from package nestedLogit.

  • Added support for aft, stpm2, and pstpm2 models from package rstpm2.
    find_formula(), find_variables(), get_data(), and model_info() now
    work with these flexible parametric survival models.

Bug fixes

  • Fixed issue with duplicated link_inverse() and missing link_function() for
    phyloglm models.

insight 1.4.6

04 Feb 09:24
0d1d835

Choose a tag to compare

Breaking Changes

  • Revised weighted residuals (get_residuals(weighted = TRUE)) to be in line
    with R 4.6.0, which now returns weighted working residuals for glm objects.

insight 1.4.5

26 Jan 07:08
34acc38

Choose a tag to compare

Changes

  • find_predictors(), find_variables(), and get_data() now work with
    tidymodels workflow objects (#1161).

  • Improve performance for is_empty_object() for large data frames (which, in
    turn, should improve performance of many other functions relying on this
    helper-function, including from other packages).

Bug fixes

  • Disabled test for the feisr package, which currently seems to be broken.

  • Fixes issue where get_datagrid() failed on random effects with tokens in by.

insight 1.4.4

08 Dec 06:05
9dfbd2e

Choose a tag to compare

Bug fixes

  • Fixed issue with is_converged() due to changes in lme4 package.

  • Fixed issue in get_data(source = "mf") for models from package fixest
    when lean was set to TRUE in the model call.

insight 1.4.3

24 Nov 13:03
b8e1c06

Choose a tag to compare

Changes

  • Added support for models from package lcmm (lcmm, externVar).

  • Support for objects from the modelbased package. This includes methods for
    get_parameters(), get_statistic(), get_df(), get_varcov(),
    find_formula(), find_parameters(), find_statistic(), and get_call().

  • Better formatting for p-values-columns from equivalence tests from other
    packages.

  • format_value(), format_number(), and export_table() gain a big_mark
    argument to format numbers with thousands separators (e.g., 1,234,567.89 or
    1 234 567.89). This makes large numbers more readable in tables and formatted
    output. When big_mark is provided, scientific notation is suppressed for
    large numbers to show the full value with separators.

  • Improved support for models from package survey. This includes a dedicated
    source argument for methods such as get_data(), get_weights(),
    find_weights(), or get_response(), to specify whether the data should be
    extracted from the model frame of the survey design object ("mf"), which is
    usually equivalent to the original data, or from the data that can be extracted
    from the model-object in the environment ("environment") , which usually
    includes processed variables (like the "(weights)" variable for weights).

  • get_df() now supports Kenward-Roger and Satterthwaite degrees of freedom
    for models from package glmmTMB. This requires package version 1.1.3.

Bug fixes

  • Fix CRAN check failures.

  • Fixed issue in get_data() for models from package survey.

  • Fixed issue in get_modelmatrix() when the data argument was provided
    and contained columns with only missing values.

insight 1.4.2

02 Sep 12:40
ed04818

Choose a tag to compare

Bug fixes

  • Fix CRAN failures for Mac OS R-old-release.

insight 1.4.1

29 Aug 10:36
f67fd93

Choose a tag to compare

Changes

  • get_varcov() now supports robust variance-covariance matrices for models
    of class glmmTMB (package glmmTMB). The argument vcov can be used to
    specify the robust variance-covariance matrix function. Furthermore, the
    component argument gains the "full" option, to return the full
    variance-covariance matrix, including the random effects (theta parameters).

  • format_table() now also formats ROPE columns for superiority and inferiority.

  • format_table() protects integer columns for non-specific column types.

  • The numerics argument in get_datagrid() gains two new options, "integer"
    and "mode", to either return the rounded mean or the most frequent value of
    a numeric vector.

  • Modified code base to address changes in the marginaleffects package from
    version 0.29.0 onwards.

Bug fixes

  • Fixed issue with find_formula() with mhurdle models.

insight 1.4.0

19 Aug 07:07
20fb23f

Choose a tag to compare

Breaking changes

  • apply_table_theme() was removed, since it was an experimental feature that
    is no longer used in any package.

Changes

  • display(), print_md() and print_html() get a .table method.

  • get_predicted() now supports chisq.test(), and returns the expected
    frequencies.

  • export_table() gains better support for the tinytable package. Use
    format = "tt" to export tables into the tinytable-format. This can also
    be used with grouped tables, i.e. by = "group".

  • export_table() gains arguments row_groups and column_groups, to
    group rows and columns in the exported table. Column groups currently only
    work for format = "tt".

  • If arguments title, subtitle and footer in export_table() are set to
    an empty string "", no titles/subtitles/footers are printed, even if present
    as attributes.

  • Added a .lavaan method for is_converged().

  • The formerly internal function to extract various information about mixed
    models is now exported as get_mixed_info().

Bug fixes

  • Fixed issue with models of class selection with multiple response
    variables.

  • Fixed issue in get_datagrid() for factors with = in their levels.

  • Fixed issue in find_random() for multivariate response models of class brms
    with special response options.

  • Fixed issue in several functions for certain betareg-models that contained
    a "mu" component instead of "mean".

  • Fixed CRAN check issues on M1 Macs.

insight 1.3.1

01 Jul 05:32
48493fc

Choose a tag to compare

Changes

  • New function get_model() to extract the model object from an arbitrary
    object, if the model object is stored as attribute of the parent object.

  • The range argument in get_datagrid() gets a new option, "pretty", to
    create a range of pretty values.

  • get_predicted() now supports models of class glmtoolbox::glmee.

  • get_predicted() supports predicting the class membership for models from
    package brms with mixture() family, using predict = "classificaton".

  • get_predicted() supports predicting the outcome by class membership for
    models from package brms with mixture() family, using predict = "link".

  • get_residuals() gets a method for objects from parameters::factor_analysis(),
    psych::fa(), psych::omega() and psych::principal().

  • model_info() returns $is_mixture to identify finite mixture models.

  • Better support for models of class sdmTMB.

  • Improve efficiency of clean_parameters() for more complex brms models.

Bug fixes

  • Fixed issue in get_df() for models from package afex.

  • Fixed issue in clean_names() for brms models with mm() in formula.

  • Fixed issue in get_data() for brms models with mmc() in formula.

  • Fixed issue in get_statistic() for objects of class aov.