brm_probs: Generate Probabilities from logit link model

View source: R/brm_prob.R

brm_probsR Documentation

Generate Probabilities from logit link model

Description

Generate Probabilities from logit link model

Usage

brm_probs(fit, digits = 2, predlabs, ...)

Arguments

fit

model fit by brm function

digits

number of digits to round

predlabs

optional vetor of labels for each predictor

Value

Tibble with 3 columns: Name, Prob, 95

Examples

x = runif(100,0,10)
y = sample(c(0,1), size = 100, replace = T)
z = runif(100,0,10)
g = rep(1:4,each = 25)
df = tibble(x = x,y = y, z = z, g = g)
brmfit = brm(y ~ x + z, data = df, family = bernoulli(link = "logit"))
brm_pval(brmfit)

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