Learn R Programming

MRS (version 1.2.6)

print.summary.mrs: Print summary of a mrs object

Description

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

Usage

# S3 method for summary.mrs
print(x, ...)

Arguments

x

A summary.mrs object

...

Additional print parameters.

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). tools:::Rd_expr_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.. tools:::Rd_expr_doi("10.1080/10618600.2017.1402774")

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))
x = mrs(X=X, G=G)
fit = summary(x, rho = 0.95, abs_eff = 1)
print(fit)

Run the code above in your browser using DataLab