Recent Releases of ggeffects
ggeffects - ggeffects 2.2.0
Major changes
- The functions
test_predictions()andjonhson_neyman()have been largely revised, due to breaking changes in the marginaleffects package. The two functions will now internally callmodelbased::estimate_contrasts()andmodelbased::estimate_slopes(), to reduce maintanance load. Thus, some features have changed or are probably no longer / not yet available.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 1 year ago
ggeffects - ggeffects 2.1.0
Changes
The
termsargument can now include up to five focal terms (formerly: four). Accordingly, theplot()method was revised. For four focal terms, a facet grid is used to plot all relevant panels. For five focal terms, multiple plots with facet grids are arranged using the patchwork package.values_at()gains a new"threenum"option.The
testargument istest_predictions()can now also be a formula to calculate consecutive contrasts, contrasts against the reference level or against the "average" factor level.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 1 year ago
ggeffects - ggeffects 2.0.0
Breaking changes
The way how
type = "random"works has been revised.type = "random"no longer returns predictions intervals. Instead, useinterval = "prediction".type = "random"is now mainly responsible for unit-level predictions in mixed models, as opposed totype = "fixed", which should be used for population-level predictions. The separation fromtype = "random"and theintervalargument makes the handling for mixed models easier, more intuitive and consistent. Accordingly, the vignette regarding the introduction into mixed models with ggeffects has been largely revised.The
vcov_funandvcov_typeargument were removed and are now replaced by the singlevcovargument, to be in line with the handling of heteroscedasticity-consistent standard errors in other packages (mainly: easystats eco-system).The deprecated arguments for
ggpredict(),vcov(),ggeffect()andggemmeans()have been removed.The deprecated arguments for the
plot()method have been removed.Options
type = "random"andtype = "zi_random"are not longer available forggemmeans(). These were only responsible to set prediction intervals, which can be done withinterval = "prediction"now.
Changes
Added a
get_preditions()method, which can be used to implement own S3-classes to add support for new models to ggeffects. There is a corresponding vignette, too.The
plot()method gets adot_shapeargument, to change the shape of data points whenshow_data = TRUE.test_predictionsgains atest_argsargument, to optionally pass further options totestfor emmeans engine/options.vcov()returns a more informative warning, when the variance-covariance matrix could not be extracted due to problems in creating the model matrix (which prevents confidence intervals from being calculated).Added Okabe-Ito color scale to the available color ggeffects-palettes.
For models of class
survreg, argumenttypecan also be"quantile".
Bug fixes
Fixed issue with argument
conditionforggaverage().Fixed issues with missing confidence intervals for objects of class
averaging.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 1 year ago
ggeffects - ggeffects 1.7.2
Breaking changes
The deprecated argument
ppdwas removed.Some of the deprecated arguments in
plot()were removed.Pooling functions now use the model's degrees of freedom to calculate the critical values for the confidence intervals.
Changes
test = "slope"(ortest = "trend") are aliases intest_predictions()fortest = NULLwith numeric predictors.predict_response()(andggpredict(),ggemmeans()andggeffect()) get an argumentbias_correction, to correct for bias when back-transforming predictions for non-Gaussian mixed models.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 1 year ago
ggeffects - ggeffects 1.7.1
General
- Added support for models of class
glm_weightit,ordinal_weightit,multinom_weightitfrom package WeightIt.
Bug fixes
Fixed issues for multivariate response models due changes in the last insight package updates.
Fixed issue with swapped lower and higher confidence interval values for models with inverse-link.
Fixed CRAN check issues due to breaking changes in the last marginaleffects update.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 1 year ago
ggeffects - ggeffects 1.7.0
Breaking
- The deprecated argument
ci.lvlintest_predictions()was removed.
General
ggpredict()now supports models of classglmgee(package glmtoolbox).ggemmeans()gains argumentsvcov_fun,vcov_typeandvcov_argsto specify the variance-covariance matrix for the marginal means, similar to what is already available inggpredict()andggaverage().When
test = "contrast", theengineis automatically set to"emmeans"intest_predictions().ggaverage()(orpredict_response(..., margin = "empirical")) now also supports followingtypeoptions for zero-inflated models:"zi_prob","zero_inflated"and"fixed".Support for zero-inflated models was massively improved in
test_predictions(), which, for instance, now also supportsscale = "zprob"to calculate contrasts for the zero-inflation probability for zero-inflated models from glmmTMB or pscl. Furthermore, when predictions for zero-inflation probabilities were calculated usingpr <- predict_response(..., type = "zi_prob"), corresponding contrasts will be calculated withtest_predictions(pr)automatically. Additionally, other types for models with zero-inflation component ("zero_inflated","fixed") are supported as well.ggeffect()now warns the user about arguments that are supported byggpredict()orggemmeans(), but not by this function (e.g.,vcov_fun).Improved accuracy of standard errors for
test_predictions(..., engine = "ggeffects").The
termsargument now also accepts the shortcut"percentile"(plus numeric value) to select a range of percentiles for continuous variables, e.g.terms = "x [percentile90]"to select a range of the 90% percentile.
Bug fixes
Fixed issue with brms models with monotonic effects in formula (
mo()).Fixed issue in
vcov()forggeffectsobjects, which could occur in rare situations when some of the predictors were character vectors.Fixed issue with calculation of standard errors when one of the focal term was a character vector.
Fixed issue in
plot()method withshow_data = TRUE, where in certain situations the raw data points were not colored when groups were present.Fixed issue in
plot()with too many data points when collapsing random effects groups.
Scientific Software - Peer-reviewed
- R
Published by strengejacke almost 2 years ago
ggeffects - ggeffects 1.6.0
General
ggpredict()now works for models of classclm2from package ordinal, however, confidence intervals are not yet supported for these models.ggeffect()now passes thelatentargument for models with ordinal outcome down toeffects::Effect(), to plot effects for ordinal models on the latent scale.When argument
testintest_predictions()is"interaction","consecutive", or a data frame, emmeans is automatically used as backend, as this is the relevant package that supports these argument types.format()(and hence,print()) fortest_predictions()gains acombine_levelsargument, to combine levels of the focal term in the output table.The
engineargument intest_predictions()can now also be"ggeffects". However, this is currently work-in-progress and offers muss less options as the default engine,"marginaleffects". It can be faster in some cases, though, and works for comparing predicted random effects in mixed models.test_predictions()now automatically falls back to engines"emmeans"or"ggeffects"if the marginaleffects (or emmeans) package is not installed.predict_response(),test_predictions()andggpredict()will warn the user when all focal terms are only included as random effects in the model and no appropriatetypeormarginis specified. This is to avoid meaningless results.plot()gets ann_rowsargument, to define the number of rows for the panel alignment. This is useful when the number of facets is large and the default alignment is not optimal.The
ppdargument for Bayesian models will be superseded by theintervalargument, i.e.ppd = TRUEis equivalent tointerval = "prediction"(andppd = FALSEis equivalent tointerval = "confidence").When
back_transform = FALSE, and model has a transformed response variable, theplot()method forggeffectsobjects now rescales the raw data points. This ensures that the raw data points are plotted on the same scale as the predicted values whenshow_data = TRUE.Minor revisions of documentation and vignettes, to improve readability and clarity.
Several arguments have been deprecated and replaced by new argument names. A warning is printed when deprecated arguments are used. The deprecated arguments will be removed in a future release.
Bug fixes
Fixed issue in
print()forggeffect()and models with ordinal outcome, where one column was too much in the output.Fixed issue in
test_predictions()with wrong order of term labels when a focal term was a character vector.Fixed issue in
ggpredict()withwbmmodels from package panelr.Fixed issue in
ggemmeans()forglmmTMBmodels with zero-inflation, whentermsincluded variables that were specified in the conditional, but not in the zero-inflation model formula.Fixed issue in
ggpredict()for Stan models (from packages rstanarm and brms) where theci_levelargument was not correctly recognized.Fixed CRAN check issues due to latest marginaleffects update.
Scientific Software - Peer-reviewed
- R
Published by strengejacke about 2 years ago
ggeffects - ggeffects 1.5.1
General
Overhaul of the documentation (again), to provide more clarity about the terminology "adjusted predictions", "marginal means" and "marginal effects", and how to calculate each of these quantities using the ggeffects package.
print_html()methods were updated to work with the latest release of tinytable.New
print_md()method, to print the output as markdown table. This is useful inside RMarkdown or Quarto documents, where the output can be directly included.
Scientific Software - Peer-reviewed
- R
Published by strengejacke about 2 years ago
ggeffects - ggeffects 1.5.0
New functions
predict_response()as "generic" high-level function, which is a replacement forggpredict(),ggemmeans()andggaverage(). The new function is more clear about how the function marginalizes over non-focal terms. Themarginargument can be used to specify how to marginalize over non-focal terms, i.e. which function internally is used to compute the marginal effects.
General
The documentation was revised, to provide more clarity about what the package functions do and how to decide, which function or method to calculate marginal effects is the most appropriate.
Improved calculation of prediction intervals for Poisson regression models.
Improved handling of the
vcov_funargument. This argument now accepts an estimation type as string, e.g.vcov_fun = "HC0", which is then used to compute the variance-covariance matrix. Thus, it is no longer necessary to define bothvcov_funandvcov_type, if the variance-covariance matrix is covered by one of the pre-defined estimation types. See?ggpredictfor details.hypothesis_test()now also accepts thevcov_funargument, and not onlyvcov. This ensures consistency with thevcov_funargument inggpredict(). Furthermore, the information about the type of variance-covariance matrix is saved to the ggeffects object returned byggpredict(),predict_response()etc., and if this information is available, it is automatically used inhypothesis_test()when a ggeffects object is passed to the function.
Bug fixes
Fixed bug in wrong order of printed (sub-)tables for predictions.
Fixed wrong table column name for confidence interval columns for other confidence levels than the default 95% in
print()forggeffectsobjects.Fixed issue with
ggpredict()for models of classfixestwhen the cluster variable was numeric.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 2 years ago
ggeffects - ggeffects 1.4.0
Breaking Changes
- The
print()method has been revised. Aformat()method was added, which allows to format the output ofggpredict()(andggeffect()etc.) for printing. The refactoring of theprint()method makes the code base easier to maintain and it is easier to enhance the print-functionality. Now it is possible to create HTML tables as well, usingprint_html(). The style of the output has also slightly changed. By default, confidence intervals are no longer enclosed in parentheses. You can change this behaviour by passing theci_bracketsargument toprint()(see examples), or permanently define custom parentheses or brackets with, e.g.,options(ggeffects_ci_brackets = c("[", "]")). Additionally, there are new arguments to further control the output of the tables:collapse_cican be used to collapse confidence intervals into a single column together with the predicted values.collapse_tablescan be used to collapse multiple tables into a single table (only applies when there is more than one focal term). Again, these settings can be permanently defined via options (see?print.ggeffectsfor details).
New functions
print_html(), to print the output as HTML table. This method is available for objects fromggpredict()(and alike) as well ashypothesis_test().
General
- A new vignette was added, showing examples for the new print-functionality.
Bug fixes
- Fixed issue with
ggpredict()for models of classvglmwith multivariate responses.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 2 years ago
ggeffects - ggeffects 1.3.4
General
ggpredict()now supports models of classrqsfrom package quantreg.Fixed issues to be compatible with forthcoming update of emmeans.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 2 years ago
ggeffects - ggeffects 1.3.3
New function
ggaverage(), to compute average predicted values. This function is based onmarginaleffects::avg_predictons().pool_comparisons(), to pool results from multiple calls tohypothesis_test(), e.g. with imputed data sets.
General
Support for
sdmTMB(sdmTMB) models.Improved support for the logistf package, including models
flic()andflac().Confidence intervals for predictions from
merModmodels (package lme4) now use the standard errors returned bypredict(..., se.fit = TRUE). This should not affect numerical results, but can be more robust for certain edge cases. Note that standard errors are only based onpredict()whentpye = "fixed". Fortype = "random", standard errors are still based on the model's variance-covariance matrix, taking uncertainty from random effects into account.hypothesis_test()now suppports models from package parsnip.johnson_neyman()gains ap_adjustargument, to adjust p-values for multiple comparisons. Currently, onlyp_adjust = "esarey"(resp.p_adjust = "es") andp_adjust = "fdr"(resp.p_adjust = "bh") are supported.
Bug fixes
ggpredict()now computes appropriate predicted probabilites for models of classrms::lrm()with ordinal outcome.Fixed issue in
ggpredict()fortype = "random"when sampling from random effects levels, where the levels were numeric characters with a pattern like"001","002", etc.Fixed minor issue in
plot.ggalleffects()....arguments inggpredict()are now passed down to thepredict()method formgcv::gam()models.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 2 years ago
ggeffects - ggeffects 1.3.2
Breaking changes
- Some function arguments will be renamed, to achieve consistency across the package and across other packages where I'm involved in the development. This will be a soft transition, i.e. the old argument names will still work for some package updates.
Changes
The
typicalargument now supports a mix of functions for different variable types at which numeric or categorical covariates (non-focal terms) are held constant.Clarification of how the
re.formargument is set when usingtype = "random"resp.type = "fixed"inggpredict().hypothesis_test()now returns the standard error of contrasts or pairwise comparisons as attributestandard_error. This can be used to compute the test-statistic, if required. In forthcoming updates, there will be methods forinsight::get_statistic()andparameters::model_parameters()to include standard errors and test-statistics in the output.test_predictions()was added as an alias forhypothesis_test().
Bug fixes
- Fixed issue in
hypothesis_test()for mixed models, which sometimes failed when random effects group variables were numeric, and not factors.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 2 years ago
ggeffects - ggeffects 1.3.1
New functions
johnson_neyman(), to create Johnson-Neyman intervals and plots fromggeffectsobjects.
Changes
Better automatic handling of offset-terms, both for predictions and generating plots with raw data. When the model formula contains an offset-term, and the offset term is fixed at a specific value, the response variable is now automatically transformed back to the original scale, and the offset-term is added to the predicted values. A warning is printed when model contains transformed offset-terms that are not fixed, e.g. via the
conditionargument.ggeffect()now supportsnestedLogitmodels.
Bug fixes
Fixed issue in
hypothesis_test(), where thebyargument did not work together with thecollapse_levelsargument.Fixed issue in
plot()method when adding raw data points for data frame that had now row names.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 2 years ago
ggeffects - ggeffects 1.3.0
Breaking
- To avoid confusion when adding raw data or residuals to plots, the
jitterargument that is used to add some noice to data points to avoid overlapping now defaults toNULL. Formerly, a small jitter was added by default, leading to confusion when data points did not match the original data.
Changes
The
plot()method gets alabel.dataargument, to add row names to data points whenadd.data = TRUE.tibblesare always converted into data frames, to avoid issues.hypothesis_test()gains abyargument, to specify a variable that is used to group the comparisons or contrasts. This is useful for models with interaction terms.
Bug fixes
Plotting residuals did not work when model object passed to
ggpredict()were inside a list, or when called from inside functions (scoping issues).Fixed issue where plotting raw data (i.e.
plot(..., add.data = TRUE)) did not work when there were missing data in weight variables (i.e. when the regression model used weights).Fixes issue in
plot()when no term was specified in the call toggpredict().Fixed issues with robust estimation for models of package pscl.
Fixed issues introduced by breaking changes in marginaleffects.
Scientific Software - Peer-reviewed
- R
Published by strengejacke almost 3 years ago
ggeffects - ggeffects 1.2.3
General
Support for
nestedLogit(nestedLogit) models.hyothesis_test()gains ascaleargument, to explicitely modulate the scale of the contrasts or comparisons (e.g."response"or"link", or"exp"to return transformed contrasts/comparisons).hyothesis_test()now includes the response level for models with ordinal outcomes (and alike).When
ggpredict()is used inside functions and a name for a vector variable (passed as argument to that function) intermsis used, the variable is now correctly recognized.Partial residuals (when
plot(..., residuals = TRUE)) now supports more linear (mixed) models, including models from package lme (such asgls()orlme()).For mixed models,
type = "random"used to calculate prediction intervals that always accounted for random effects variances, leading to larger intervals. Usinginterval = "confidence"together withtype = "random"now allows to calculate "usual" confidence intervals for random effects. This is usefule for predictions at specific group levels of random effects (when focal terms are only fixed effects, usetype = "fixed"for regular confidence intervals).The
vcov.funargument can now also be a function that returns a variance-covariance matrix.The
verboseargument inggpredict()andhypothesis_test()now also toggle messages for the respectiveprint()methods.The
print()method forhypothesis_test()has been revised and now provides more details for possible transformation of the scale of comparisons and contrasts.The
print()method now shows all rows by default when the focal term is a factor. If rows are not shown in the output, a message is printed to inform the user about truncated output.A new vignette about using ggeffects in the context of an intersectional multilevel analysis of individual heterogeneity, using the MAIHDA framework.
Bug fixes
Fixed issue with wrong order of x-axis-labels for plots when the focal term on the x-axis was a character vector, where alphabetical order of values did not match order of predictions.
Fixed issues in
hyothesis_test()for models with ordinal outcomes (and alike).
Scientific Software - Peer-reviewed
- R
Published by strengejacke almost 3 years ago
ggeffects - ggeffects 1.2.2
General
Added a new
[.ggeffectsfunction, which allows to subsetggeffectsobjects in the same way as regular data frames, i.e. it is now possible to do:gge <- ggpredict(model, "x1") gge[c(1:2)]Using a name for a vector variable in
termsnow works from inside functions. E.g., you can now do:foo <- function(data) { fit <- lm(barthtot ~ c12hour + c172code, data = data) v <- c(20, 50, 70) ggpredict(fit, terms = "c12hour [v]") } foo(efc)The
colorsargument inplot()can now also be applied to single-colored plots.hyothesis_test()gains acollapse_levelargument, to collapse term labels that refer to the same levels into a singel unique level string.
Bug fixes
Fixed issue with misplaced residuals when x-axis was categorical and the factor levels were not in alphabetical order.
pool_predictions()now correctly handles models with transformed response variables (likelog(y)) and returns the correct back-transformed pooled predictions (and their confidence intervals).Fixed issue with wrong computation of confidence intervals for models of class
clmfrom package ordinal.Fixed failing tests due to changes in the logistf package, which now also supports emmeans. That means,
ggemmeans()now also works for models from package logistf.Fixed bug in
plot()when partial residuals were added (i.e.residuals = TRUE) andcollapse.groupwas provided (in case of mixed models).Fixed issue with on-the-fly created factors inside formulas, which were not correctly treated as factors in the
plot()method. This bug was related to recent changes ininsight::get_data().Fixed issue with wrong labels in
hyothesis_test()for comparisons with many rows, when betas starting with same digit were specified (e.g.test = "(b1-b13)=(b3-b15)").Fixed issue in
hyothesis_test()for mixed models when focal terms included factors with factor levels that contained a comma.Fixed issue with missing confidence intervals for mixed models when one of the variable names contains white space characters (e.g.
y ~ 'x a' + xb).
Scientific Software - Peer-reviewed
- R
Published by strengejacke about 3 years ago
ggeffects - ggeffects 1.2.0
Breaking
- Confidence intervals of adjusted predictions now take the model's degrees of freedom into account, thereby leading to slightly larger intervals for models that do not have infinite degrees of freedom (like linear models with t-statistic).
New functions
hypothesis_test(), to compute contrasts and comparisons of predictions and test differences for statistical significance. Additionally, an accompanying vignette that explains the new function in detail is added.install_latest(), to install the latest official package version from CRAN, or the latest development version from r-universe.An
as.data.frame()method was added, which convertsggeffectsobjects returned byggpredict()into data frame, where standard column names are replaced by their related variable names.
General
Response values are now also back-transformed when these were transformed using
log2(),log10()orlog1p().The
termsargument can now also be a named list. Thus, instead ofterms = c("score [30,50,70]", "status [low, middle]")one could also writeterms = list(score = c(30,50,70), status = c("low", "middle")).
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 3 years ago
ggeffects - ggeffects 1.1.4
General
- Reduced package dependencies. Packages sjlabelled and MASS were moved from imports to suggests. ggeffects is now a very lightweight package to compute adjusted predictions and estimated marginal means.
New supported models
logitr(package logitr)
Bug fixes
Fixed issue with wrong standard errors for predicting random effect groups for more multiple levels.
Fixed issue in
ggemmeans(), which did not correctly averaged over character vectors when these were hold constant.Fixed bug for models of class
lmewhentype = "re"was requested.
Scientific Software - Peer-reviewed
- R
Published by strengejacke over 3 years ago
ggeffects - ggeffects 0.5.0
General
- New vignette Different Output between Stata and ggeffects.
Changes to functions
ggpredict()now automatically back-transforms predictions to the response scale for model with log-transformed response.ggeffect()andggpredict()now automatically set numeric vectors with 10 or more unique values to representative values (seerprs_values()), if these are used as second or third value in theterms-argument (to represent a grouping structure).- Fix memory allocation issue in
ggeffect(). rprs_values()is now exported.- The
pretty-argument is deprecated, because prettifying values almost always makes sense - so this is done automatically. ggpredict()now supportsbrmsfit-objects with categorical-family.ggalleffect()has been removed.ggeffect()now plots effects for all model terms ifterms = NULL.gginteraction()andggpoly()have been removed, asggpredict()andggeffect()are more efficient and generic for plotting interaction or polynomial terms.
Bug fixes
- Fix issues with categorical or ordinal outcome models (
polr,clm,multinom) forggeffect(). - Fix issues with confidence intervals for mixed models with log-transformed response value.
- Fix issues with confidence intervals for generalized mixed models when response value was a rate or proportion created with
cbind()in model formula.
Scientific Software - Peer-reviewed
- R
Published by strengejacke almost 8 years ago
ggeffects - ggeffects 0.4.0
General
- Removed alias names
mem(),eff()andame(). - For mixed models (packages lme4, nlme, glmmTMB), the uncertainty of the random effect variances is now taken into account when
type = "re". - Computing confidence intervals for mixed models should be much more memory efficient now, resulting less often in warnings about memory allocation problems.
- Updated reference in
CITATIONto the publication in the Journal of Open Source Software. - A test-suite was added to the package.
New functions
pretty_range(), to create a pretty sequence of integers of a vector.
Changes to functions
ggpredict()gets acondition-argument to specify values at which covariates should be held constant, instead of theirtypicalvalue.- The
pretty-option forggpredict()now calculates more values, leading to smoother plots. - The
terms-argument inggpredict()can now also select a range of feasible values for numeric values, e.g.terms = "age [pretty]". In contrast to thepretty-argument, which prettyfies all terms, you can selectively prettify specific terms with this option. - The
terms-argument inggpredict()now also supports all shortcuts that are possible for themdrt.values-argument ingginteraction(), so for instanceterm = "age [meansd]"would return three values: mean(age) - sd(age), mean(age) and mean(age) + sd(age). plot()gets some new arguments to control which plot-title to show or hide:show.title,show.x.titleandshow.y.title.plot()gets alog.yargument to transform the y-axis to logarithmic scale, which might be useful for binomial models with predicted probabilities, or other models with log-alike link-functions.- The
plot()-method for plotting all effects withggpredict()(whenterm = NULL) now allows to arrange the plot in facets (usingfacets = TRUE). - Values in dot-argument for
plot()are now passed down toggplot::scale_y*(), to control the appearance of the y-axis (likebreaks).
Bug fixes
- Fixed issue with binomial models that used
cbind(...)as response variable. - Fixed issue with suboptimal precision of confidence resp. prediction intervals for mixed models (packages lme4, nlme), which are now more accurate.
Scientific Software - Peer-reviewed
- R
Published by strengejacke almost 8 years ago
ggeffects - ggeffects 0.3.4-1
Release with revisions suggested during JOSS-review.
Scientific Software - Peer-reviewed
- R
Published by strengejacke almost 8 years ago
ggeffects - ggeffects 0.3.4
General
- Prediction for
glmmTMB-objects now compute proper confidence intervals, due to fix in package glmmTMB 0.2.1 - If
termsinggpredict()is missing orNULL, marginal effects for each model term are calculated.ggpredict()then returns a list of data frames, which can also be plotted withplot().
Changes to functions
- The
jitter-argument fromplot()now accepts a numeric value between 0 and 1, to control the width of the random variation in data points. ggpredict()andggeffect()can now predict transformed values, which is useful, for instance, to exponentiate predictions forlog(term)on the original scale of the variable. See package vignette, section Marginal effects at specific values or levels for examples.
Bug fixes
- Multivariate response models in brms with variable names with underscores and dots were not correctly plotted.
Scientific Software - Peer-reviewed
- R
Published by strengejacke almost 8 years ago
ggeffects - ggeffects 0.3.3
General
- Better support for multivariate-response-models from brms.
- Support for cumulative-link-models from brms.
ggpredict()now supports linear multivariate response models, i.e.lm()with multiple outcomes.
Changes to functions
ggpredict()gets apretty-argument to reduce and "prettify" the value range from variables intermsfor predictions. This applies to all variables intermswith more than 25 unique values.
Bug fixes
- Recognize negative binomial family from
brmsfit-models.
Scientific Software - Peer-reviewed
- R
Published by strengejacke about 8 years ago