Releases: easystats/insight
insight 1.5.1
Changes
-
New support for
CmdStanFitmodels from the cmdstanr package -
find_algorithm(),find_parameters(), andget_parameters()now work with
these models. -
model_info()now correctly detects t- and z-tests from package BSDA. -
format_bf()gains adigitsargument. -
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 classmirafrom 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
vcovargument inget_varcov()was ignored whenvcovwas of class
"dpoMatrix"and did not returnTRUEtois.matrix().
insight 1.5.0
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()andget_statistic()for models
from package mgcv that include random effects. -
get_predicted()supports models from package nestedLogit. -
Added support for
aft,stpm2, andpstpm2models from package rstpm2.
find_formula(),find_variables(),get_data(), andmodel_info()now
work with these flexible parametric survival models.
Bug fixes
- Fixed issue with duplicated
link_inverse()and missinglink_function()for
phyloglmmodels.
insight 1.4.6
Breaking Changes
- Revised weighted residuals (
get_residuals(weighted = TRUE)) to be in line
with R 4.6.0, which now returns weighted working residuals forglmobjects.
insight 1.4.5
Changes
-
find_predictors(),find_variables(), andget_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 inby.
insight 1.4.4
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
whenleanwas set toTRUEin the model call.
insight 1.4.3
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(), andget_call(). -
Better formatting for p-values-columns from equivalence tests from other
packages. -
format_value(),format_number(), andexport_table()gain abig_mark
argument to format numbers with thousands separators (e.g.,1,234,567.89or
1 234 567.89). This makes large numbers more readable in tables and formatted
output. Whenbig_markis 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
sourceargument for methods such asget_data(),get_weights(),
find_weights(), orget_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 thedataargument was provided
and contained columns with only missing values.
insight 1.4.2
Bug fixes
- Fix CRAN failures for Mac OS R-old-release.
insight 1.4.1
Changes
-
get_varcov()now supports robust variance-covariance matrices for models
of classglmmTMB(package glmmTMB). The argumentvcovcan be used to
specify the robust variance-covariance matrix function. Furthermore, the
componentargument 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
numericsargument inget_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
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()andprint_html()get a.tablemethod. -
get_predicted()now supportschisq.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 argumentsrow_groupsandcolumn_groups, to
group rows and columns in the exported table. Column groups currently only
work forformat = "tt". -
If arguments
title,subtitleandfooterinexport_table()are set to
an empty string"", no titles/subtitles/footers are printed, even if present
as attributes. -
Added a
.lavaanmethod foris_converged(). -
The formerly internal function to extract various information about mixed
models is now exported asget_mixed_info().
Bug fixes
-
Fixed issue with models of class
selectionwith multiple response
variables. -
Fixed issue in
get_datagrid()for factors with=in their levels. -
Fixed issue in
find_random()for multivariate response models of classbrms
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
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
rangeargument inget_datagrid()gets a new option,"pretty", to
create a range of pretty values. -
get_predicted()now supports models of classglmtoolbox::glmee. -
get_predicted()supports predicting the class membership for models from
package brms withmixture()family, usingpredict = "classificaton". -
get_predicted()supports predicting the outcome by class membership for
models from package brms withmixture()family, usingpredict = "link". -
get_residuals()gets a method for objects fromparameters::factor_analysis(),
psych::fa(),psych::omega()andpsych::principal(). -
model_info()returns$is_mixtureto 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 withmm()in formula. -
Fixed issue in
get_data()for brms models withmmc()in formula. -
Fixed issue in
get_statistic()for objects of classaov.