ab-methods {abtest} | R Documentation |
Methods defined for objects returned from the ab_test
function.
## S3 method for class 'ab' summary(object, digits = 3, raw = FALSE, ...) ## S3 method for class 'summary.ab' print(x, ...) ## S3 method for class 'ab' print(x, ...) ## S3 method for class 'ab' plot(x, ...)
object, x |
object of class |
digits |
number of digits to print for the summary. |
raw |
if |
... |
further arguments, currently ignored. |
The print
methods prints the Bayes factors, prior
probabilities of the hypotheses, and posterior probabilities of the
hypotheses (and returns nothing).
The plot
method visualizes the prior probabilities of the hypotheses
and posterior probabilities of the hypotheses (the next plots is obtained
by hitting Return) using the prob_wheel
function.
The summary
methods returns the ab
object that is guaranteed
to contain posterior samples (i.e., it adds posterior samples if they were
not included already). Additionally, it adds to the object a posterior
summary matrix (i.e., ab$post$post_summary
) for the posterior under
H1 and the arguments digits
(used for printing) and raw
(added to ab$input
).