tidyfitted: Tidy fitted values from brmsfit models

Description Usage Arguments Value

View source: R/tidyfitted.R

Description

This function extracts fitted values in a format expected by other plotting functions

Usage

1
tidyfitted(model, grouping = NA, xvar = NA, level = 0.95, ...)

Arguments

model

a brmsfit model

grouping

Name of grouping variable (e.g. (1 | grouping)). Defaults to NA which returns the unique / first grouping factor in model.

xvar

Predictor variable to evaluate fitted values on

level

For credible interval limits.

...

Passed to brms::fitted.brmsfit()

Value

a tibble


mvuorre/brmstools documentation built on July 10, 2018, 7:49 a.m.