draw: Plots results of fdrOrd()

Description Usage Arguments Value Author(s) See Also Examples

View source: R/someObject.R

Description

Plots results of fdrOrd()

Usage

1
draw(object, what = c("all", "ordVsP", "stepVsR"), pdfName = NULL)

Arguments

object

a someMTP.object resulting from fdrOrd()

what

what to plot; "all" is the default

pdfName

it is the pdf filename where the plot will be saved. If pdfNane is null (the default) the plot will show as window.

Value

No value is returned

Author(s)

Livio Finos

See Also

See Also fdrOrd.

Examples

1
2
3
4
5
6
7
8
set.seed(17)
	x=matrix(rnorm(60),3,20)
	x[,1:10]=x[,1:10]+2 ##variables 1:10 have tests under H1
	ts=apply(x,2,function(x) t.test(x)$statistic)
	ps=apply(x,2,function(x) t.test(x)$p.value)
	m2=apply(x^2,2,mean)
	pOrd <- fdrOrd(ps,q=.05,ord=m2)	
	draw(pOrd)

someMTP documentation built on May 29, 2017, 3:47 p.m.