Skip to content

bayestestR 0.15.0

Latest
Compare
Choose a tag to compare
@strengejacke strengejacke released this 17 Oct 12:00
· 2 commits to main since this release
080f664

Changes

  • Support for posterior::rvar-type column in data frames.
    For example, a data frame df with an rvar column ".pred" can now be
    called directly via p_direction(df, rvar_col = ".pred").

  • Added support for {marginaleffects}

  • The ROPE or threshold ranges in rope(), describe_posterior(), p_significance()
    and equivalence_test() can now be specified as a list. This allows for different
    ranges for different parameters.

  • Results from objects generated by {emmeans} (emmGrid/emm_list) now
    return results with appended grid-data.

  • Usability improvements for p_direction():

    • Results from p_direction() can directly be used in pd_to_p().

    • p_direction() gets an as_p argument, to directly convert pd-values into
      frequentist p-values.

    • p_direction() gets a remove_na argument, which defaults to TRUE, to
      remove NA values from the input before calculating the pd-values.

    • Besides the existing as.numeric() method, p_direction() now also has an
      as.vector() method.

  • p_significance() now accepts non-symmetric ranges for the threshold argument.

  • p_to_pd() now also works with data frames returned by p_direction(). If
    a data frame contains a pd, p_direction or PD column name, this is assumed
    to be the pd-values, which are then converted to p-values.

  • p_to_pd() for data frame inputs gets a as.numeric() and as.vector()
    method.

Bug fixes

  • Fixed warning in CRAN check results.