brm_pval: Generate empirical P-Value from MCMC generated by brm...

View source: R/brm_pval.R

brm_pvalR Documentation

Generate empirical P-Value from MCMC generated by brm function

Description

Generate empirical P-Value from MCMC generated by brm function

Usage

brm_pval(fit)

Arguments

brmfit

Model fit by brm function

Value

tibble with 2 columns containing Fixed Effects names and pvalues

Examples

require(brms)
x = 1:100
y = x^2 + rnorm(length(x))
g = rep(1:4,each = 25)
df = tibble(x = x,y = y,g = g)

brmfit = brm(y ~ x^2 + (1|g), data = df)
brm_pval(brmfit)

Ajfrick/ajfhelpR documentation built on June 30, 2023, 12:56 a.m.