Learn R Programming

brms (version 0.3.0)

hypothesis: Non-linear hypothesis testing

Description

Perform non-linear hypothesis testing of fixed effects parameters

Usage

hypothesis(x, hypothesis, ...)

Arguments

x
An R object typically of class brmsfit
hypothesis
A character vector specifying one or more non-linear hypothesis concerning fixed effects
...
Currently ignored

Value

  • Summary statistics of the posterior distributions related to the hypotheses

Details

Currently there are methods for brmsfit objects.

Examples

Run this code
fit_i <- brm(rating ~ treat + period + carry, data = inhaler, family = "cumulative")

hypothesis(fit_i, "treat = period + carry")
hypothesis(fit_i, "exp(treat) - 3 = 0")

## test both of the above hypotheses with the same call
hypothesis(fit_i, c("treat = period + carry", "exp(treat) - 3 = 0"))

Run the code above in your browser using DataLab