View source: R/bmult_S3methods.R
print.summary.bmult | R Documentation |
summary.bmult
Prints the summary from Bayes factor analysis
## S3 method for class 'summary.bmult' print(x, ...)
x |
object of class |
... |
additional arguments, currently ignored |
The print methods print the summary from the Bayes factor analysis and returns nothing
# 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') ## Binomial Case out_binom <- binom_bf_informed(x=x, n=n, Hr=Hr, a=a, b=b, niter=1e3,factor_levels, seed=2020) summary(out_binom) ## Multinomial Case out_mult <- mult_bf_informed(x=x, Hr=Hr, a=a, niter=1e3,factor_levels, seed=2020) summary(out_mult)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.