Skip to content

Releases: easystats/insight

insight 0.19.9

16 Mar 08:56
e94da44
Compare
Choose a tag to compare

New supported models

  • Support for models of class serp (package serp).

General

  • standardize_names() now also recognizes column s.value from objects of
    package marginaleffects.

Bug fixes

  • Fixed issue in find_predictors() for models with splines (s()), where
    number of dimensions was indicated with a variable, not a number.

  • format_ci() now works for factors and character vectors again.

  • Fixed issues with latest release of tinytable.

  • Fixed issues with latest release of PROreg.

insight 0.19.8

05 Feb 19:50
79d98a9
Compare
Choose a tag to compare

General

  • Removed deprecated arguments in get_data.mmrm().

  • Improved support for models of class rqs (package quantreg).

  • Revised test to address forthcoming changes in the pscl package.

Bug fixes

  • Fixed issue in get_loglikelihood() for glm-models with binary outcome, where
    levels were defined in reversed order.

  • Fixed issue in find_formula() for models of class glmmPQL (package MASS).

  • Fixed issue in find_formula() for models of class gam (package mgcv) for
    the "gaulss" family.

  • Fixed issue in get_variance() for glmmTMB models with family = "ordbeta".

  • Fixed issue in model_info() with correctly detecting multivariate vgam/vglm
    models.

insight 0.19.7

26 Nov 15:18
09551e9
Compare
Choose a tag to compare

General

  • Support for objects of class ggcomparisons from ggeffects::hypothesis_test().

  • brms::gr() is now supported, meaning that functions like get_data() or
    find_predictors() now also work for models with group-specific random effects.

  • Fix CRAN check issues due to the last fixest update.

Changes to functions

  • get_varcov() for models of class pgmm (package plm) now also supported
    robust variance-covariance matrices (i.e. argument vcov).

Bug fixes

  • Fixed issue in find_predictors() for survival models with strata(),
    containing more that one variable.

  • Fixed issue in model_info(), where in some cases logistic regression models
    were erroneously considered as "bernoulli" models.

  • Fixed issue in find_formula() for models of class gamlss when the random()
    function was used with namespace in the formula (i.e. ... + gamlss::random()).

  • model_info() now detects models with zero-inflation part from package
    glmmTMB when models have truncated-families but no ziformula.

insight 0.19.6

12 Oct 11:49
95ebd50
Compare
Choose a tag to compare

General

  • Improved documentation for get_predicted_ci().

Changes to functions

  • model_info() now recognized ordered beta families.

  • find_formula and get_response for nestedLogit models gain a dichotomies
    argument, to return values for the dichotomies used to fit the model.

Bug fixes

  • find_transformation() better detects power-transformation of the response
    variable.

  • Corrected return value from find_statistic for nnet::multinom() models.

  • clean_parameters() did not return the "clean_parameters" class attributes
    for some object. This caused issued in upstream packages.

  • Fixed issue in model_info(), which did not correctly detect "Bernoulli"
    property for some models classes (like glmmTMB or glmerMod).

insight 0.19.5

13 Sep 13:29
a3e795d
Compare
Choose a tag to compare

Bug fixes

  • Fixed critical issue with check_if_installed() for old R releases.

insight 0.19.4

10 Sep 18:57
7ee2d31
Compare
Choose a tag to compare

Changes to functions

  • get_predicted() now accepts predict = "link" for gaussian models with
    log-link (i.e. glm(..., family = gaussian("log"))), to return predictions
    on the link scale.

  • check_if_installed() now automatically checks the package DESCRIPTION file to
    determine the correct minimum version required.

Bug fixes

  • Fixed issue with invalid multibyte strings in trim_ws().

  • Fixed issue in find_statistic() for models from package fixest.

insight 0.19.3

29 Jun 15:15
a95325c
Compare
Choose a tag to compare

Breaking changes

  • standardize_column_order() has changed the position when re-ordering Bayes
    factors, ROPEs and ESS / Rhat (mainly relevant for Bayesian models).

Changes to functions

  • standardize_names() and standardize_column_order() now also recognize the
    "response.level" column name.

  • get_data() for lavaan models is now more stable at retrieving model data
    when this is not available in the environment.

  • find_terms() gets an as_term_labels argument, to extract model terms
    from the formula's "term.labels" attribute. This is closer to the behaviour
    of stats::terms(), but may be insufficient, e.g. for mixed models.

Bug fixes

  • get_random() now returns the same observations as get_data() and correctly
    removes missing values from the data before returning it.

  • find_parameters() for marginal effects ignores the "s.value" column (which
    was added in a recent update).

  • Fixed issue in get_response() for brms models with trunc() function in
    the response variable.

insight 0.19.2

23 May 16:21
b1f98dc
Compare
Choose a tag to compare

Breaking changes

  • The minimum needed R version has been bumped to 3.6.

  • download_model() no longer errors when a model object could not be downloaded,
    but instead returns NULL. This prevents test failures, and allows to skip
    tests when the return value of download_model() is NULL.

General

  • Improved support for mclogit models (package mclogit) and mipo objects
    (package mice) for models with ordinal or categorical response.

New supported models

  • phylolm and phyloglm (package phylolm), nestedLogit (package nestedLogit).

Bug fixes

  • Fixed issue in get_variance() for glmmTMB models with rank deficient
    coefficients.

  • Fixed issues in get_weights() for glm models without weights and na.action
    not set to default in the model call.

  • clean_names() now also removes the relevel() pattern.

  • Fixed issue in model_info() for models of class gamlss.

  • Fixed problems preventing get_data() from locating data defined in
    non-global environments.

  • Fixed issue in get_predicted() for variables of class numeric matrix created
    by scale(), which were correctly handled only when get_data() failed to
    find the data in the appropriate environment.

  • Fixed issue in model_info() for gee models from binomial families.

insight 0.19.1

18 Mar 19:28
9046fc5
Compare
Choose a tag to compare

New supported models

  • hglm (package hglm).

Changes to functions

  • Minor improvements to get_data() for t.test().

  • format_value() gets a lead_zero argument, to keep or drop the leading
    zero of a formatted value, as well as arguments style_positive and
    style_negative to style positive or negative numbers.

  • format_table() now also formats columns named SGPV (second generation
    p-values) as p-values.

  • Functions for models of class clm (like find_formula(), find_variables(),
    get_data() etc.) now also include variables that were defined as scale or
    nominal component.

Bug fixes

  • Fixed issue in get_data() for results from kruskal.test().

  • Fixed issue in find_weights() for models of class lme and gls.

  • Fixed issue in get_datagrid() for models with multiple weight variables.

insight 0.19.0

30 Jan 12:25
Compare
Choose a tag to compare

New supported models

  • mmrm (package mmrm), flac and flic (logistf)

Breaking changes

  • get_data() was revised and now always tries to recover the data that was
    used to fit a model from the environment. If this fails, it falls back to
    recovering data from the model frame (the former default behaviour).
    Futrhermore, the source argument can be used to explicitly force the old
    behaviour: source = "mf" will try to recover data from the model frame first,
    then possibly falling back to look in the environment.

New functions

  • n_grouplevels(), to return random effect groups and number of group levels
    for mixed models.

Changes to functions

  • get_datagrid() preserves all factor levels for factors that are hold constant
    at their reference level. This is required to work together with
    get_modelmatrix() when calculating standard errors for get_predicted().

Bug fixes

  • Fixed but in get_modelmatrix() handling of incomplete factors which
    sometimes had downstream implications for numerical results in the uncertainty
    estimates produced by get_predicted().

  • Fixed minor issues for HTML tables in export_table() when model parameters
    were grouped.

  • Fixed issue with incorrect back-transforming in get_data() for models with
    log-transformed variables.

  • Fixes issue in compact_list().

  • has_single_value() now returns FALSE when the object only has NA and
    na.rm = TRUE.

  • Fixed issue in get_parameters() for gam-models without smooth terms, or with
    only smooth terms and removed intercept.