Learn R Programming

qbrms (version 1.0.1)

p_significance: Probability of Practical Significance (Enhanced bayestestR-style)

Description

Compute the probability that each parameter is above a threshold in the median's direction, similar to bayestestR::p_significance(). This represents the proportion of the posterior distribution that indicates a "significant" effect in the median's direction.

Usage

p_significance(
  object,
  parameters = NULL,
  threshold = "default",
  nsim = 1000,
  verbose = TRUE
)

Value

A data frame of class qbrms_p_significance with columns Parameter, ps, Median, CI_low, CI_high, Threshold_low, Threshold_high, and Interpretation.

Arguments

object

A qbrms_fit object.

parameters

Optional character vector of parameter names; if NULL, all fixed-effect coefficients are used.

threshold

The threshold value that separates significant from negligible effect:

  • "default": Uses 0.1 as threshold range around zero

  • A single numeric value (e.g., 0.1): Creates symmetric range around zero (-0.1, 0.1)

  • A numeric vector of length two (e.g., c(-0.2, 0.1)): Asymmetric threshold

  • A list of numeric vectors: Each vector corresponds to a parameter

  • A named list: Names correspond to parameter names

nsim

Number of draws to simulate for the approximation.

verbose

Logical; print progress information.