qwrite {qvalue} | R Documentation |

## Write the results of the q-value object qobj to a file

### Description

Write the results of the q-value object qobj to a file.

### Usage

qwrite(qobj, filename = "my-qvalue-results.txt")

### Arguments

`qobj` |
Qvalue object |

`filename` |
Output filename (optional) |

### Details

The output file lists the estimate of *pi_0*, which is the
proportion of true null hypotheses. It also lists each p-value and
corresponding q-value, one per line. If an FDR significance level was
specified in the call to `qvalue`

, the significance level
is printed below the estimate of *pi_0*, and an indicator
of significance is included as a third column for each p-value and q-value.

### Value

Nothing of interest.

### Author(s)

Alan Dabney adabney@u.washington.edu and John D. Storey jstorey@u.washington.edu

### See Also

`qvalue`

, `qplot`

, `qsummary`

, `qvalue.gui`

### Examples

## Not run:
p <- scan("pvalues.txt")
qobj <- qvalue(p)
qplot(qobj)
qwrite(qobj, filename="myresults.txt")
## End(Not run)

[Package

*qvalue* version 1.1

Index]