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.
p_significance(
object,
parameters = NULL,
threshold = "default",
nsim = 1000,
verbose = TRUE
)A data frame of class qbrms_p_significance with columns
Parameter, ps, Median, CI_low, CI_high,
Threshold_low, Threshold_high, and Interpretation.
A qbrms_fit object.
Optional character vector of parameter names; if NULL,
all fixed-effect coefficients are used.
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
Number of draws to simulate for the approximation.
Logical; print progress information.