Ttest {RNAither} | R Documentation

## Perform a Student's t-test

### Description

Performs a Student's t-test on the intensity data.

### Usage

    Ttest(dataset, listofargs)

### Arguments

`dataset` | an R data frame generated with `generateDatasetFile`
`listofargs` | a list containing: - `"g"` (greater) for significant increase, `"l"` (lower) for significant decrease, or `"two.sided"` for both - either a number indicating the true value of the mean, or a character string indicating the name of the gene to compare with - a character string specifying the column whose values will be used for the test - a character string specifying the name of the dataset column to be used to define the replicate, e.g. `"GeneName"` or `"Internal_GeneID"`

### Value

Returns a list containing:

`pValVec` | a named vector of p-values
`dataset` | the dataset with an added column `"p.value.mannwhitney"`
`paste("pValue.ttest", testType, sep="_")` | the character string `"pValue.ttest"` concatenated with the `testType` (first element of `listofargs`)
`"t test"` | the character string `"t test"`

### See Also

`MannWhitney`, `RankProduct`

### Examples

    data(exampleHeader, package="RNAither")
    data(exampleDataset, package="RNAither")

    pvals1 <- Ttest(dataset, list("l", median(dataset$SigIntensity, na.rm=TRUE), "SigIntensity", "GeneName"))
    pValVec1 <- pvals1[[1]]
    scoredDataset1 <- pvals1[[2]]

[Package RNAither version 2.36.0 Index]