Releases: easystats/insight
insight 0.19.9
New supported models
- Support for models of class
serp
(package serp).
General
standardize_names()
now also recognizes columns.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
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 classglmmPQL
(package MASS). -
Fixed issue in
find_formula()
for models of classgam
(package mgcv) for
the"gaulss"
family. -
Fixed issue in
get_variance()
for glmmTMB models withfamily = "ordbeta"
. -
Fixed issue in
model_info()
with correctly detecting multivariate vgam/vglm
models.
insight 0.19.7
General
-
Support for objects of class
ggcomparisons
fromggeffects::hypothesis_test()
. -
brms::gr()
is now supported, meaning that functions likeget_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 classpgmm
(package plm) now also supported
robust variance-covariance matrices (i.e. argumentvcov
).
Bug fixes
-
Fixed issue in
find_predictors()
for survival models withstrata()
,
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 classgamlss
when therandom()
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 noziformula
.
insight 0.19.6
General
- Improved documentation for
get_predicted_ci()
.
Changes to functions
-
model_info()
now recognized ordered beta families. -
find_formula
andget_response
fornestedLogit
models gain adichotomies
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
fornnet::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 (likeglmmTMB
orglmerMod
).
insight 0.19.5
Bug fixes
- Fixed critical issue with
check_if_installed()
for old R releases.
insight 0.19.4
Changes to functions
-
get_predicted()
now acceptspredict = "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
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()
andstandardize_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 anas_term_labels
argument, to extract model terms
from the formula's"term.labels"
attribute. This is closer to the behaviour
ofstats::terms()
, but may be insufficient, e.g. for mixed models.
Bug fixes
-
get_random()
now returns the same observations asget_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 withtrunc()
function in
the response variable.
insight 0.19.2
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 returnsNULL
. This prevents test failures, and allows to skip
tests when the return value ofdownload_model()
isNULL
.
General
- Improved support for
mclogit
models (package mclogit) andmipo
objects
(package mice) for models with ordinal or categorical response.
New supported models
phylolm
andphyloglm
(package phylolm),nestedLogit
(package nestedLogit).
Bug fixes
-
Fixed issue in
get_variance()
for glmmTMB models with rank deficient
coefficients. -
Fixed issues in
get_weights()
forglm
models without weights andna.action
not set to default in the model call. -
clean_names()
now also removes therelevel()
pattern. -
Fixed issue in
model_info()
for models of classgamlss
. -
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
byscale()
, which were correctly handled only whenget_data()
failed to
find the data in the appropriate environment. -
Fixed issue in
model_info()
forgee
models frombinomial
families.
insight 0.19.1
New supported models
hglm
(package hglm).
Changes to functions
-
Minor improvements to
get_data()
fort.test()
. -
format_value()
gets alead_zero
argument, to keep or drop the leading
zero of a formatted value, as well as argumentsstyle_positive
and
style_negative
to style positive or negative numbers. -
format_table()
now also formats columns namedSGPV
(second generation
p-values) as p-values. -
Functions for models of class
clm
(likefind_formula()
,find_variables()
,
get_data()
etc.) now also include variables that were defined asscale
or
nominal
component.
Bug fixes
-
Fixed issue in
get_data()
for results fromkruskal.test()
. -
Fixed issue in
find_weights()
for models of classlme
andgls
. -
Fixed issue in
get_datagrid()
for models with multiple weight variables.
insight 0.19.0
New supported models
mmrm
(package mmrm),flac
andflic
(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, thesource
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 forget_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 byget_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 returnsFALSE
when the object only hasNA
and
na.rm = TRUE
. -
Fixed issue in
get_parameters()
for gam-models without smooth terms, or with
only smooth terms and removed intercept.