Learn R Programming

MRS (version 1.1)

summary.mrs: Summary of a mrs object

Description

This function summarizes the output of the mrs function. It provides the marginal prior and posterior null and the top regions of the representative tree.

Usage

"summary"(object, rho = 0.5, abs_eff = 0, sort_by = "eff", ...)

Arguments

object
A mrs object
rho
Threshold for the posterior alternative probability. All regions with posterior alternative probability larger than rho are reported. Default is rho = 0.5.
abs_eff
Threshold for the effect size. All regions with effect size larger than abs_eff in absolute value are reported. Default is abs_eff = 0.
sort_by
Define in which order the regions are reported. The options are sort_by = c("eff", "prob") and the default is sort_by = "eff".
...
Additional summary parameters.

Value

A list with information about the top regions.

References

Soriano J. and Ma L. (2014). Multi-resolution two-sample comparison through the divide-merge Markov tree. Preprint. http://arxiv.org/abs/1404.3753

Examples

Run this code
set.seed(1)
n = 100
p = 2
X = matrix(c(runif(p*n/2),rbeta(p*n/2, 1, 4)), nrow=n, byrow=TRUE)
G = c(rep(1,n/2), rep(2,n/2))
object = mrs(X=X, G=G)
fit = summary(object, rho = 0.5, abs_eff = 0.1)

Run the code above in your browser using DataLab