data.create: Create Synthetic Data

Description Usage Arguments Value Examples

View source: R/data.create.R

Description

This function generates synthetic compound data.

Usage

1
data.create(N, nr, nc, M, p, s=NULL, covrow=NULL, covcol=NULL, c=0.0001, mat=FALSE)

Arguments

N

Number of compounds per plate.

nr

Number of plate rows.

nc

Number of plate columns.

M

Number of plates.

p

Probability of a compound being a hit.

s

Random seed (for reproducibility perposes). Default is NULL.

covrow

Noise plate row-covariance matrix. Default is NULL.

covcol

Noise plate column-covariance matrix. Default is NULL.

c

Constant for scaling plate noise. Default is 0.0001.

mat

Specifies a matrix (TRUE) or a vector (FALSE) plate format. Default is FALSE.

Value

This function returns a list consisting of the following elements:

Z

A list of matrices (mat=TRUE) or vectors (mat=FALSE) of compounds.

B

A list of compound indicators specifying a hit (1) or a non-hit (0).

I

A list of compound indicators specifying the muxture component (from 1 to K).

Examples

1
 #See package vignette

BHTSpack documentation built on Feb. 8, 2021, 5:07 p.m.