GenerateData: Make two samples from the diseased and healthy populations.

Description Usage Arguments Value Examples

View source: R/GenerateData.R

Description

Make two samples from the diseased and healthy populations.

Usage

1
2
3
4
5
6
7
8
GenerateData(
  distribution,
  n,
  AUC,
  theta_squared,
  var_eq = TRUE,
  ME_var_ratio = 1
)

Arguments

distribution

One of the following strings : "normal", "gamma.skewed", "gamma.symmetrical", "log.normal","bimodal1","bimodal2" ,"t3" , "laplace"

n

an integer - sample size from each population

AUC

the probability P(X>Y) of correctly ranking a pair of random observations (diseased,healthy).

theta_squared

the contamination parameter, aka noise-to-signal ratio.

var_eq

if TRUE VX=VY, else VX=2VY (b=1,2 in Ben's notation)

ME_var_ratio

(default to 1) determines the ratio of diseased/healthy ME variance (a in Ben's notation)

Value

a list with of the contaminated observations, by population

Examples

1
GenerateData("gamma.skewed",15,0.9,1,TRUE,1)

blebedenko/thescript2 documentation built on Dec. 19, 2021, 9:53 a.m.