View source: R/methods_BayesFactor.R
p_value.BFBayesFactor | R Documentation |
This function attempts to return, or compute, p-values of Bayesian models.
## S3 method for class 'BFBayesFactor'
p_value(model, ...)
model |
A statistical model. |
... |
Additional arguments |
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()
.
The p-values.
data(iris)
model <- lm(Petal.Length ~ Sepal.Length + Species, data = iris)
p_value(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.