outputData {DIRECT}R Documentation

Writing Simulation Parameters and Data to Files

Description

Write simulation parameters and simulated data to files with user-specified filenames.

Usage

outputData(datafilename, parfilename, meanfilename, 
    simudata, pars, nitem, ntime, nrep)

Arguments

datafilename

Name of text file containing simulated data.

parfilename

Name of text file containing simulation parameters, which include number of items, number of time points, number of replicates, true cluster-specific mean vectors, true standard deviations of three types of variability (random effects).

meanfilename

Name of text file containing sample means (averaged over replicates) of simulated data.

simudata

List produced by simuDataREM. Contains simulated data.

pars

Matrix of simulation parameters. Same object as pars.mtx in simuDataREM.

nitem

Number of items.

ntime

Number of time points.

nrep

Number of replicates.

Value

Three files are generated and placed under the current working directory or directories specified in filenames:

Author(s)

Audrey Q. Fu

References

Fu, A. Q., Russell, S., Bray, S. and Tavare, S. (2013) Bayesian clustering of replicated time-course gene expression data with weak signals. The Annals of Applied Statistics. 7(3) 1334-1361.

See Also

simuDataREM for simulating data.

plotSimulation for plotting simulated data.

DIRECT for clustering the data.

Examples

## See example for simuDataREM.

[Package DIRECT version 1.0.1 Index]