Media_pvalue: functions to calculate pvalue

Description Usage Arguments Value Examples

View source: R/Media_pvalue.R

Description

This function is created to calculate p values about MeDiA_k

Usage

1
Media_pvalue(iTest,jTest,times,selectvec)

Arguments

iTest

a numeric matrix

jTest

a numeric matrix which has the same rows as iTest

selectvec

an integer vector which contains a series of K values you want to get

times

an integer indicates permutation times

Value

Media_pvalue(iTest,jTest,times,selectvec) return a numeric vectors contains p values based on the selectvec(K value you want to select)

Examples

1
2
3
4
5
iTest <- matrix(rnorm(1000),100)
jTest<- matrix(rnorm(200),100)
times<- 100
selectvec <- c(1:10)
Media_pvalue(iTest,jTest,times,selectvec)

MediaK documentation built on May 29, 2017, 3:53 p.m.

Search within the MediaK package
Search all R packages, documentation and source code