samples.bmult {multibridge} | R Documentation |
bmult
Extracts prior and posterior samples (if applicable) from an object of class bmult
## S3 method for class 'bmult'
samples(x)
x |
object of class |
Returns list
with prior and posterior samples (if applicable) from an object of class bmult
# 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)
sample_list <- samples(out_mult)