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

Description Usage Arguments Value Examples

View source: R/brm_pval.R

Description

Generate empirical P-Value from MCMC generated by brm function

Usage

1
brm_pval(fit)

Arguments

brmfit

Model fit by brm function

Value

tibble with 2 columns containing Fixed Effects names and pvalues

Examples

1
2
3
4
5
6
7
8
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/AVRCHelp documentation built on Dec. 13, 2018, 6:21 p.m.