Recent Releases of insight
insight - insight 1.4.2
Bug fixes
- Fix CRAN failures for Mac OS R-old-release.
Scientific Software - Peer-reviewed
- R
Published by strengejacke 9 months ago
insight - 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, thecomponentargument 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.
Scientific Software - Peer-reviewed
- R
Published by strengejacke 9 months ago
insight - 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. Useformat = "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 as
get_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 classbrmswith 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.
Scientific Software - Peer-reviewed
- R
Published by strengejacke 9 months ago
insight - 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.
Scientific Software - Peer-reviewed
- R
Published by strengejacke 11 months ago
insight - insight 1.3.0
Breaking Changes
- The default option
"all"for theeffectsargument offind_parameters()andget_parameters()for models from package brms and rstanarm has a new behaviour and only returns fixed effects and random effects variance components, but no longer the group level estimates. Useeffects = "full"to return all parameters. This change is mainly to be more flexible and gain more efficiency for models with many parameters and / or many posterior draws.
New functions
is_bayesian_model()as a convenient shortcut to check whether a model is Bayesian or not.
Changes
Revised wording for alerts from
get_variance().The
effectsargument offind_parameters()andget_parameters()for models from package brms and rstanarm get two new options,"grouplevel"and"random_variances", to return only random effects variance components, or group level effects. This is more efficient especially for models with many samples and many parameters. Additionally, avariableargument can be passed toget_parameters(), which is in turn passed toas.data.frame(), to extract parameters more efficiently.The
byargument inexport_table()now also splits tables when format is not"html".
Bug fixes
- Fixed issue in
find_formula()for models of classbarts(package dbarts), when formula was abbreviated usingy ~ ..
Scientific Software - Peer-reviewed
- R
Published by strengejacke about 1 year ago
insight - insight 1.2.0
Breaking Changes
The handling of
brmsmodels infind_parameters(),find_formula()orclean_parameters()(and other functions) should now systematically take the many possible distributional parameters into account, identifying the different types of them, and assigning them to own values in theComponentcolumns. insight should now be flexible enough to also cope with user-defined variables that have been modelled as distributional parameters.To be consistent with the naming pattern from package
brms, all elements related to distributional parameters now returns exactly that "dpar" name. This means that, for instance,find_formula()no longer returns an element named$zero_inflated, but instead$zi. This only applies to models frombrms! All other packages are not affected by this breaking change.
Changes
find_random()andfind_random_slopes()now also extract random effects names from auxiliary components.find_random()andfind_random_slopes()now include random effects from the dispersion component for models from package glmmTMB.clean_parameters()for brms-models now assigns auxiliary parameters to their relatedComponentand overwrites former assignments to"conditional".format_table()now includes more effect sizes when formatting column names.get_datagrid()now allows named vectors for argumentslengthandrange, to match values with target variables defined inby.get_datagrid()gets aprotect_integerargument, to allow a spread of values from minimum to maximum of lengthlength, also for integer values.export_table()gets an argumentcolumn_names, to change the column names of the exported table.model_info()gains aresponseargument for classes that can be multivariate response models that return multiple lists of model information (currently, Stan models from rstanarm and brms). If notNULL, only the information for one of the response variables is returned.Creating a range of values in a
get_datagrid()usingbywas now simplified and works like regular R syntax, e.g.by = "mpg = 20:50".get_predicted()for models of classbrmsfitnow supports Wiener models or similar so called "decision models", that simultaneously model, e.g., reaction times and (discrete) choices.get_predicted()no longer throws warnings for models of classbrmsfitwhen distributional are predicted.find_offset()gets anas_termargument, which returns the offset as term, including possible transformations.Token-option
"quartiles2"was removed and option"quartiles"now produces the three quartile values (lower hinge, median, upper hinge). The former option of"quartiles"that included minimum and maximum was identical to the already existing"fivenum"option.New function
find_auxiliary(), which is a small helper to extract all distributional parameters that were used in models from package brms.display(),print_md()andprint_html()get methods for matrix- and array objects.Cleaning / revising package documentation.
Bug fixes
null_model()now correctly calculates the null-model based on the data that was used to fit the model (model frame), which can lead to different results when the original data contained missing values.Fixed issue for
get_predicted()with multivariate response models.
Scientific Software - Peer-reviewed
- R
Published by strengejacke about 1 year ago
insight - insight 1.1.0
Breaking Changes
get_datagrid()no longer creates fractional parts when creating a range of values for numeric variables that are integers.
Changes
get_datagrid()now includes a dummy column for model weights (valuesNA), to work with models that used weights.get_datagrid()gets adigitsargument, to round numeric representative values.Argument
ci_digitsdefaults todigitsinformat_table().format_table()gets aselectargument, which can be used to select columns and column layout in a glue-like style.find_response()now also works for tidymodels workflows.get_transformation()andfind_transformation()now also detect log-transformation with logarithmic base.
Bug fixes
- Fixed issue in
find_formula(),find_response()andfind_predictors()for multinomialgammodels from package mgcv.
Scientific Software - Peer-reviewed
- R
Published by strengejacke about 1 year ago
insight - insight 1.0.2
Changes
get_datagrid()gives a more informative error message when a variable specified inbywas not found in the data.The
byargument inget_datagrid()gets a new token-option,"[sample <number>]", to draw a random sample of values.
Bug fixes
Option
"terciles"and"terciles2"inget_datagrid()were swapped, i.e."terciles"was doing what was documented for"terciles2"and vice versa. This has been fixed.include_randominget_datagrid()now works for nested random effects, i.e. for more than one group level factor in the random effects.Fixed issue in
get_varcov()for models of classbrmsfitthat included monotonic effects.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 1 year ago
insight - insight 1.0.1
General
Support for models of class
oohbchoice(package DCchoice).format_table()gets astars_onlyargument, to format p-value columns to contain only significance stars.get_predicted()for brms-models with categorical family now includes the data of the data grid in the returned predictions, for better orientation.
Bug fixes
Fixed issues due to latest mice updates.
Fixed typo in
get_parameters.glmmadmb(), which was erroneously renamed intoget_parameters.glmmTMBadmb().Fixed issues in
find_predictors()andhas_intercept()for brms models with0 + Interceptformula notation.Fixed issues in
get_statistic()for models of classfixestfrom negative-binomial families.Fixed issue with
as.numeric()method forget_sigma().get_datagrid()now only returns valid levels wheninclude_random = TRUEand group-level factor in random effects is numeric.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 1 year ago
insight - insight 1.0.0
Breaking changes
All deprecated arguments have been removed.
The
table_widthargument inexport_table()now defaults to"auto".
General
get_transformation()can now deal with any power-transformation, and also returns results for divisions (scaled response) and Box-Cox transformations.find_transformation()andget_transformation()now also detects use of divisions, likex/3or Box-Cox transformations (like(x^lambda - 1) / lambda).find_transformation()andget_transformation()get ainclude_allargument, to check all model terms for transformations.get_dispersion()is now an exported function.Updated
get_varcov()(and related documentation) to support new covariance matrix estimation methods from the sandwich package.New function
validate_argument()as a replacement formatch.arg()with more informative error message.The function to calculate the corrections for likelihood-values when the response-variable is transformed is now exported as
get_likelihood_adjustment().export_table()can now split tables into more than three tables whentable_widthis used (formerly, the maximum number of split tables was three).Changed (improved) formatting for parameter tables in
export_table(), whenformat = "html". Rows are indented, and group headers are emphasized in italic.formula_ok()now also checks for syntactically invalid variable names. Furthermore, argumentchecksnow allows to specify for which possibly problematic formula notation should be checked.format_value()gains adecimal_pointargument, to change the decimal point in output conversion.format_bf()withstars = TRUEuses the°symbol for inferiority (evidence against the comparison).Added support for
coxph.panelmodels.Added support for models of class
asym(package panelr).Overhaul of documentation for the package-functions.
Bug fix
clean_parameters()now uses the correct labels for the random effects variances ("SD/Cor"has changed to"Var/Cov").When
get_data()could not properly evaluate the subset of a data set, it now returns an informative warning and no longer errors.Fixed inaccuracy in
get_sigma()for models of class brmsfit.Fixed issues in
get_variance()for models of class brmsfit when the sigma-parameter was directly modeled.Fixed issue in
compact_character()andcompact_list()for date-variables.Fixed edge case in
find_transformation()for simple log-transformation of the response variable.Fixed issue for
model_info.averaging().
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 1 year ago
insight - insight 0.20.5
General
get_datagrid()can now be used to extract the "grid" information from{emmeans}and{marginaleffects}outputs.Arguments
na.rmandna_rmare deprecated throughout the package's functions. Instead, useremove_na.
Bug fixes
Fixed rendering issue of the example in
?insight::display.Fixed issues due to recent changes in the glmmTMB package.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 1 year ago
insight - insight 0.20.4
New supported models
- Support for models of classes
glm_weighit,multinom_weightitandordinal_weightit(package WeightIt).
Changes
null_model()andformula_ok()now warn when indexed data frames, such asdf[, 5], are used as response variable in the formula, as this can lead to unexpected results.Minor improvements to
link_function()andlink_inverse().
Bug fixes
Fixed regression from latest fix related to
get_variance()for brms models.Fixed issue in
link_function()andlink_inverse()for models of class cglm with"identity"link, which was not correctly recognized due to a typo.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 1 year ago
insight - insight 0.20.3
Changes
get_df()now supports more model classes.get_variance()gives an informative error if no mixed model is provided.
Bug fixes
Fixed issue in
find_formula(),find_predictors()andfind_variables()for models from package brms with custom formulas.Fixed issues in
find_response()for brms models withmi()function in the response variable.Fixed issue in
get_variance()that could lead to recursive calls for brms models, resulting in "infinite" resampling of the model.Fixed issue in
check_if_installed()that erroneously tried to guess the minimum required package version based on the SUGGEST field of the insight package, instead of the package that was calling the function.Fixed issue in
get_modelmatrix()for models from package brms with special functions in the formula (likemo()).Fixed issue in
ellipses_info()when this function was called fromdo.call().Fixed issue with formatting unicode-symbols, where a wrong unicode-character was used for "Omega". Furthermore, Omega2 and Eta2 are now correctly converted.
Scientific Software - Peer-reviewed
- R
Published by strengejacke almost 2 years ago
insight - insight 0.20.2
New supported models
Support for models of class
glmgee(package glmtoolbox).Support for models of class
svy2lme(package svylme).
General
Massive overhaul of
get_variance(). The function should be now more accurate for different distributional families, in particular for mixed regression models with Beta family.Improved accuracy of singularity-checks in
get_variance().get_variance()gets a few new arguments:null_model, to provide a null-model to be used for the calculation of random effect variances. IfNULL, the null-model is computed internally. This argument is optional, but may be useful to save time, or when the null-model cannot be calculated internally.approximation, indicating the approximation method for the distribution-specific (observation level, or residual) variance.model_component, for models that can have a zero-inflation component, specify for which component variances should be returned. By default, both the conditional and the zero-inflation component are taken into account.
format_alert()andformat_warning()get animmediateargument, to output warnings immediately.find_terms()andfind_transformation()now better cope with inverse transformations of the response value, such as1/y.get_transformation()now returns more transformations for power-transformed response variables.model_info()forMixModobjects from package GLMMadaptive now recognize zero-inflation and hurdle models for custom families.
Bug fixes
null_model()now correctly handles zero-inflated models from package glmmTMB.Fixed issue in
null_model()for models from package GLMMadaptive.Fixed issues in
link_inverse()andlink_function()for models of classgamlssfromLOGNO()family.
Scientific Software - Peer-reviewed
- R
Published by strengejacke almost 2 years ago
insight - insight 0.20.1
Bug fixes
- Fixed possible memory allocation issues when the deprecated argument
atwas used inget_datagrid()
Scientific Software - Peer-reviewed
- R
Published by strengejacke almost 2 years ago
insight - insight 0.20.0
Breaking
Arguments named
group,at,group_byandsplit_bywill be deprecated in future releases of easystats packages. Please usebyinstead. This affects following functions in insight:export_table()get_datagrid()print_parameters()
Bug fixes
Fixed errors in CRAN checks.
Fixed issues in
compact_list()for objects that contained variables of classvctrs.
Scientific Software - Peer-reviewed
- R
Published by strengejacke almost 2 years ago
insight - insight 0.19.11
General
- More informative error message for
get_varcov()when the requestedvcov-function failed.
Bug fixes
- Fixed issue with
get_data()forcoxmemodels whensourcewas set to"modelframe".
Scientific Software - Peer-reviewed
- R
Published by strengejacke about 2 years ago
insight - insight 0.19.10
Bug fixes
Functions like
find_variables()orclean_names()now support multi-membership formulas for models from brms.Updated tests to work with the latest changes in glmmTMB 1.1.9.
Scientific Software - Peer-reviewed
- R
Published by strengejacke about 2 years ago
insight - insight 0.19.9
New supported models
- Support for models of class
serp(package serp).
General
standardize_names()now also recognizes columns.valuefrom 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.
Scientific Software - Peer-reviewed
- R
Published by strengejacke about 2 years ago
insight - 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.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 2 years ago
insight - insight 0.19.7
General
Support for objects of class
ggcomparisonsfromggeffects::hypothesis_test().brms::gr()is now supported, meaning that functions likeget_data()orfind_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 classgamlsswhen 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.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 2 years ago
insight - insight 0.19.6
General
- Improved documentation for
get_predicted_ci().
Changes to functions
model_info()now recognized ordered beta families.find_formulaandget_responsefornestedLogitmodels gain adichotomiesargument, 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_statisticfornnet::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 (likeglmmTMBorglmerMod).
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 2 years ago
insight - insight 0.19.5
Bug fixes
- Fixed critical issue with
check_if_installed()for old R releases.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 2 years ago
insight - 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.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 2 years ago
insight - 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_labelsargument, 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.
Scientific Software - Peer-reviewed
- R
Published by strengejacke almost 3 years ago
insight - 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
mclogitmodels (package mclogit) andmipoobjects (package mice) for models with ordinal or categorical response.
New supported models
phylolmandphyloglm(package phylolm),nestedLogit(package nestedLogit).
Bug fixes
Fixed issue in
get_variance()for glmmTMB models with rank deficient coefficients.Fixed issues in
get_weights()forglmmodels without weights andna.actionnot 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()forgeemodels frombinomialfamilies.
Scientific Software - Peer-reviewed
- R
Published by strengejacke about 3 years ago
insight - insight 0.19.1
New supported models
hglm(package hglm).
Changes to functions
Minor improvements to
get_data()fort.test().format_value()gets alead_zeroargument, to keep or drop the leading zero of a formatted value, as well as argumentsstyle_positiveandstyle_negativeto 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 asscaleornominalcomponent.
Bug fixes
Fixed issue in
get_data()for results fromkruskal.test().Fixed issue in
find_weights()for models of classlmeandgls.Fixed issue in
get_datagrid()for models with multiple weight variables.
Scientific Software - Peer-reviewed
- R
Published by strengejacke about 3 years ago
insight - insight 0.19.0
New supported models
mmrm(package mmrm),flacandflic(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, thesourceargument 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 withget_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 returnsFALSEwhen the object only hasNAandna.rm = TRUE.Fixed issue in
get_parameters()for gam-models without smooth terms, or with only smooth terms and removed intercept.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 3 years ago
insight - insight 0.18.8
insight 0.18.8
Bug fixes
- Fixed test due to changes in the performance package.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 3 years ago
insight - insight 0.18.7
General
Minor revisions to
get_predicted.glmmTMB()due to changes in behaviour ofpredict.glmmTMB()for truncated-family models since glmmTMB 1.1.5.New function
has_single_value()that is equivalent tolength(unique()) == 1(orn_unique() == 1) but faster.
Changes to functions
ellipses_info()now includes an attribute$is_binomial, which isTRUEfor each model from binomial family.
Bug fixes
Fixed behaviour of the
atargument inget_datagrid().Fixed issue for accessing model data in
get_datagrid()for some edge cases.
Changes based on PRs/commits:
- make at argument more intuitive by @strengejacke in https://github.com/easystats/insight/pull/676
- Edgecase: when 'k' is a variable in GAM's s(), datagrid fails by @strengejacke in https://github.com/easystats/insight/pull/682
- Revdep issues with glmmTMB by @strengejacke in https://github.com/easystats/insight/pull/680
- Implement
has_one_value()by @etiennebacher in https://github.com/easystats/insight/pull/683 - CRAN submission by @strengejacke in https://github.com/easystats/insight/pull/685
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 3 years ago
insight - insight 0.18.6
Bug fixes
Better dectection of unicode-support, to avoid failures when building vignettes.
get_predicted()now correctly handles variables of class numeric matrix created byscale(), which fixes a bug inperformance::check_model()(easystats/performance#432).Fixed issue with
iterationsargument inget_predicted()with brms models.Support the logitr package:
get_data(),find_variables()and more.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 3 years ago
insight - insight 0.18.5
Breaking
get_df(type = "satterthwaite")forlmerModobjects now return degrees of freedom per parameter, and no longer per observation. Usedf_per_obs TRUEto return degrees of freedom per observation.
New functions
safe_deparse_symbol()to only deparses a substituted expressions when possible,which increases performance in case many calls todeparse(substitute()).
Changes to functions
format_table()gets ause_symbolsargument. IfTRUE, column names that refer to particular effectsizes (like Phi, Omega or Epsilon) include the related unicode-character instead of the written name. This only works on Windows for R >= 4.2, and on OS X or Linux for R >= 4.0.The
starsargument informat_table()can now also be a character vector, naming the columns that should include stars for significant values. This is especially useful for Bayesian models, where we might have multiple columns with significant values, e.g."BF"for the Bayes factor or"pd"for the probability of direction.get_df()gets moretypeoptions to return different type of degrees of freedom (namely,"wald"and"normal", and for mixed models,"ml1","betwithin","satterthwaite"and"kenward-roger").standardize_names()now recognized more classes from package marginaleffects.Minor improvements to
find_parameters()for models with nonlinear formula.Minor speed improvements.
Bug fixes
Fixed issue in
get_data()for models of classplm, which accidentally converted factors into character vectors.Fixed issue with column alignment in
export_table()when the data frame to print contained unicode-characters longer than 1 byte.Correctly extract predictors for
fixest::i(f1, i.f2)interactions (#649 by @grantmcdermott).
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 3 years ago
insight - insight 0.18.4
Changes to functions
model_info()now includes information forhtestobjects fromshapiro.test()andbartlett.test()(will return$is_variancetest = TRUE).
Bug fixes
- Fixed issue in
get_data()which did not correctly backtransform to original data when terms had log-transformations such aslog(1 + x)orlog(x + 1).
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 3 years ago
insight - insight 0.18.3
New functions
format_alert(),format_warning()andformat_error(), as convenient wrappers aroundmessage(),warning()orstop()in combination withformat_message(). You can use these functions to format messages, warnings or errors.
Changes to functions
get_predicted()for models of classclmnow includes confidence intervals of predictions.format_message()gets some additional formatting features. See 'Details' in?format_messagefor more information and some current limitations.format_message()gets anindentargument, to specify indention string for subsequent lines.format_table()now merges IC and IC weights columns into one column (e.g., former columns"AIC"and"AIC_wt"will now be printed as one column, named"AIC (weights)"). Furthermore, anic_digitsargument was added to control the number of significant digits for the IC values.print_color()andcolor_text()now support bright variants of colors and background colors.get_datagrid()gets more options foratandrange, to provide more control how to generate the reference grid.get_data()for models of classgeeglmandfixestnow more reliably retrieves the model data.
New supported models
- Support for models of class
mblogitandmclogit.
Bug fixes
Fixed issues with wrong attribute
adjusted_forininsight::get_datagrid().Fixed issue (resp. implemented workaround) in
get_data.iv_robust(), which failed due to a bug in the estimatr package.Fixed issue where
get_predicted()failed when data contains factors with only one or incomplete levels.Fixed issue in
get_predicted()for models of classmlm.Fixed issue where
get_predicted()failed to compute confidence intervals of predictions when model contained matrix-alike response columns, e.g. a response variable created withcbind().
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 3 years ago
insight - insight 0.18.2
New functions
format_percent()as short-cut forformat_value(as_percent = TRUE).is_converged(), to check whether a mixed model has converged or not.
Changes to functions
format_table()gains anexactargument, to either report exact or rounded Bayes factors.get_predicted()gets a method for models of classgamlss(and thereby,get_loglikelihood()now also works for those model classes).get_predicted()now better handles models of classpolr,multinomandrlm.
Bug fixes
Fixed test failures.
Minor fixes to address changes in other packages.
Scientific Software - Peer-reviewed
- R
Published by strengejacke almost 4 years ago
insight - insight: A Unified Interface to Access Information from Model Objects in R
When fitting any statistical model, there are many useful pieces of information that are simultaneously calculated and stored beyond coefficient estimates and general model fit statistics. Although there exist some generic functions to obtain model information and data, many package-specific modeling functions do not provide such methods to allow users to access such valuable information.
insight is an R-package that fills this important gap by providing a suite of functions to support almost any model (see a list of the many models supported below in the List of Supported Packages and Models section). The goal of insight, then, is to provide tools to provide easy, intuitive, and consistent access to information contained in model objects. These tools aid applied research in virtually any field who fit, diagnose, and present statistical models by streamlining access to every aspect of many model objects via consistent syntax and output.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 6 years ago
insight - insight: A Unified Interface to Access Information from Model Objects in R
When fitting any statistical model, there are many useful pieces of information that are simultaneously calculated and stored beyond coefficient estimates and general model fit statistics. Although there exist some generic functions to obtain model information and data, many package-specific modeling functions do not provide such methods to allow users to access such valuable information.
insight is an R-package that fills this important gap by providing a suite of functions to support almost any model (see a list of the many models supported below in the List of Supported Packages and Models section). The goal of insight, then, is to provide tools to provide easy, intuitive, and consistent access to information contained in model objects. These tools aid applied research in virtually any field who fit, diagnose, and present statistical models by streamlining access to every aspect of many model objects via consistent syntax and output.
Scientific Software - Peer-reviewed
- R
Published by strengejacke almost 7 years ago