Skip to content

parameters 0.30.0

Choose a tag to compare

@strengejacke strengejacke released this 15 Oct 17:29
· 80 commits to main since this release
bfdf858

Changes

  • model_parameters() now supports objects from TukeyHSD() (#738).

  • model_parameters() now saves information about the type of HC-vcov
    calculation as attribute.

  • model_parameters() now raises a warning instead of a message when the
    vcocv is supplied to calculate sandwich standard errors, but not supported
    by the model class.

Bug fixes

  • model_parameters() for objects from marginaleffects no longer drops or
    renames columns of focal terms or by variables whose names equal column
    names that the output uses, such as type or t.

  • model_parameters() for objects from marginaleffects: a by variable
    with the name of an output column, such as p or SE, is now returned as
    p.1 or SE.1. The output column keeps its name. This does not apply to
    Bayesian models. It also does not apply to the predictions() columns
    Predicted, SE, CI_low and CI_high, which marginaleffects itself
    overwrites.

  • equivalence_test() for lavaan models no longer fails with an error about
    range when the model was fitted inside a function. Functions that look up
    the original model by its name now also find it in the calling functions.

  • bootstrap_model() and bootstrap_parameters() with
    type = "semiparametric" no longer fail for models from lme4. For models
    from glmmTMB, this type now gives an informative error, because
    lme4::bootMer() does not support it for these models (#1242).

  • model_parameters() and ci() no longer fail for merModList models from
    merTools with the error "formal argument "component" matched by multiple
    actual arguments" (#1199).

  • If the htest object of a Spearman or Kendall correlation test carries a
    confidence interval, model_parameters() now returns it. Before, only
    Pearson correlations showed a confidence interval (#1003).

  • model_parameters() for models from blavaan now works with
    standardize = TRUE, "all" or "std.all" and summarizes the standardized
    posterior draws. This requires insight 1.6.0 or later. As for lavaan
    models, standardize = "latent" or "std.lv" and "no_exogenous" or
    "std.nox" summarize the draws of the matching type of
    blavaan::standardizedPosterior(). These values require insight 1.6.0
    or later. If the "std.nox" values equal the "std.all" values, you get
    one warning instead of one from lavaan for each draw. Older versions of
    insight give an error that asks you to update. Other values
    of standardize (except FALSE or NULL) return unstandardized parameters.
    With verbose = TRUE, they also give a warning.

  • model_parameters(..., bootstrap = TRUE) no longer fails for clmm models
    from ordinal. Like other mixed models, it now returns only the fixed
    effects and says so in a message (#1056).

  • model_parameters() no longer fails for models fitted with stats::arima().

  • print() and print_md() now show a user-supplied caption for models
    that have no default caption, such as models fitted with lm() (#749).

  • With insight 1.6.0 or later, caption = "" in print() and
    print_md() now removes the "Fixed Effects" and "Random Effects" captions
    of mixed models (easystats/insight#930).

  • model_parameters(..., effects = "grouplevel") now formats categorical
    random-slope labels consistently across all grouping levels.

  • standard_error() and hence model_parameters() returned wrong (recycled)
    standard errors for models of class glmmTMB fitted with the new ordinal()
    family, because the thresholds are not part of the summary coefficient table.
    Standard errors are now taken from insight::get_varcov(), which returns
    them on the threshold scale via the delta method (requires insight > 1.5.4
    and glmmTMB >= 1.1.15).

  • format_parameters() and model_parameters() now keep the names of terms
    with a colon inside a function call, such as lag(log(emp), 1:2) in plm
    models. Before, the colon split these terms like interactions. A term like
    lag(log(x)) is also no longer formatted as a log-transformed term (#502).