summary.mrs {MRS} | R Documentation |
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
## S3 method for class 'mrs'
summary(object, rho = 0.5, abs_eff = 0, sort_by = "eff",
...)
Arguments
object |
A |
rho |
Threshold for the posterior alternative probability.
All regions with posterior alternative probability larger
than |
abs_eff |
Threshold for the effect size. All regions with
effect size larger than |
sort_by |
Define in which order the regions are reported.
The options are |
... |
Additional summary parameters. |
Value
A list
with information about the top regions.
References
Soriano J. and Ma L. (2017). Probabilistic multi-resolution scanning for two-sample differences. Journal of the Royal Statistical Society: Series B (Statistical Methodology). doi:10.1111/rssb.12180
Ma L. and Soriano J. (2018). Analysis of distributional variation through multi-scale Beta-Binomial modeling. Journal of Computational and Graphical Statistics. Vol. 27, No. 3, 529-541.. doi:10.1080/10618600.2017.1402774
Examples
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)