p_value.BFBayesFactor: p-values for Bayesian Models

View source: R/methods_BayesFactor.R

p_value.BFBayesFactorR Documentation

p-values for Bayesian Models

Description

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

Usage

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

Arguments

model

A statistical model.

...

Additional arguments

Details

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

Value

The p-values.

Examples

data(iris)
model <- lm(Petal.Length ~ Sepal.Length + Species, data = iris)
p_value(model)

easystats/parameters documentation built on April 27, 2024, 7:28 p.m.