Learn R Programming

D3M (version 0.41.1)

topD3M: Subsetting Top Significant Distribution Pairs and Output Graphics.

Description

Subsetting Top Significant Distribution Pairs and Output Graphics.

Usage

topD3M(obj, ntop = 10, plot.it = TRUE)

Arguments

obj
D3M object resulted from d3m.
ntop
the number of top distribution pairs to be investigated. Default is 10.
plot.it
whether output the grphics based on Q-Q plot. Defarult is plot.it=TRUE.

Value

top.cases top significant distributions in case group.top.control top significant distributions in control group.pval p-values related to top significant distribution pairs.Q-Q plots of distribution pairs.

Details

this function extract a subset of the most significant distribution pairs based on p-values. The graphical representation is based on Q-Q plots, which represents the shape difference being tested by d3m function.

Examples

Run this code
library(D3M)
nrep <- 12
cases <- Map(rbeta,rep(30,nrep),rep(1,nrep),rep(5,nrep)); cases <- do.call("rbind",cases)
control <- Map(rbeta,rep(30,nrep),rep(1,nrep),rep(5,nrep)); control <- do.call("rbind",control)
obj <- d3m(cases,control,paranum = 101, q = 2, bsn = 1000)
topD3M(obj,ntop = 10,plot.it = TRUE)

Run the code above in your browser using DataLab