rowOneSampleTP {RnBeads} | R Documentation

## rowOneSampleTP

### Description

performs a two-sided t-test for paired samples on each row of a matrix X with the indices inds.1 vs indices inds.g2 as group assignments.

### Usage

    rowOneSampleTP(X, mu = 0, alternative = "two.sided")

### Arguments

`X` | Matrix on which the test is performed for every row
`mu` | The mean that is tested against
`alternative` | Testing alternative. Must be one of "two.sided" (default),"less","greater" or "all". in case of "all" a data frome with corresping alternative variables is returned. Otherwise the result is a vector.

### Value

vector (or data.frame if alternative=="all") of p-values from a paired t-test

### Note

Requires `matrixStats` package

### Author(s)

Fabian Mueller

### Examples

    library(RnBeads.hg19)
    data(small.example.object)
    logger.start(fname=NA)
    meth.mat <- meth(rnb.set.example)
    p.vals <- rowOneSampleTP(meth.mat,mu=0,alternative="greater")

[Package RnBeads version 2.2.0 Index]