Learn R Programming

bigstep (version 0.5.0)

doSingleTests: Single tests

Description

Peform correlation tests between a vector y and a matrix X.

Usage

doSingleTests(X, y, maxp = 1e+07, verbose = TRUE)

Arguments

X
a numeric matrix or an object of class big.matrix (see 'Details'). The rows of X contain the samples, the columns of X contain the observed variables.
y
a numeric vector of responses. The length of y must equal the number of rows of X.
maxp
a numeric. If X is big, it will be splitted into parts with maxp elements. It will not change results, but it is necessary if your computer does not have enough RAM. Set to a lower value if you still have problems.
verbose
a logical. Set FALSE if you do not want to see any information during the selection procedure.

Value

A list with the following components: A list with the following components:

Examples

Run this code
set.seed(1)
n <- 100
M <- 10
X <- matrix(rnorm(M*n), ncol=M)
y <- X[, 2] - X[, 3] + X[, 6] - X[, 10] + rnorm(n, sd=1)
doSingleTests(X, y)

Run the code above in your browser using DataLab