restriction_list: S3 method for class 'restriction_list.bmult'

restriction_listR Documentation

S3 method for class restriction_list.bmult

Description

Extracts restriction list from an object of class bmult

Usage

restriction_list(x, ...)

Arguments

x

object of class bmult as returned from mult_bf_informed or binom_bf_informed

...

additional arguments passed to other methods

Value

Extracts restriction list and associated hypothesis from an object of class bmult

Examples

# data
x <- c(3, 4, 10, 11)
n <- c(15, 12, 12, 12)
# priors
a <- c(1, 1, 1, 1)
b <- c(1, 1, 1, 1)
# informed hypothesis
factor_levels <- c('theta1', 'theta2', 'theta3', 'theta4')
Hr            <- c('theta1', '<',  'theta2', '<', 'theta3', '<', 'theta4')

## Multinomial Case
out_mult  <- mult_bf_informed(x=x, Hr=Hr, a=a, factor_levels=factor_levels,
niter=1e3, seed=2020)
restriction_list <- restriction_list(out_mult)

multibridge documentation built on Nov. 1, 2022, 5:05 p.m.