Learn R Programming

parameters (version 0.14.0)

p_value.BFBayesFactor: p-values for Bayesian Models

Description

This function attempts to return, or compute, p-values of Bayesian models.

Usage

# S3 method for BFBayesFactor
p_value(model, ...)

Arguments

model

A statistical model.

...

Arguments passed down to standard_error_robust() when confidence intervals or p-values based on robust standard errors should be computed. Only available for models where method = "robust" is supported.

Value

The p-values.

Details

For Bayesian models, the p-values corresponds to the probability of direction (p_direction), which is converted to a p-value using bayestestR::convert_pd_to_p().

Examples

Run this code
# NOT RUN {
data(iris)
model <- lm(Petal.Length ~ Sepal.Length + Species, data = iris)
p_value(model)
# }

Run the code above in your browser using DataLab