generateNormalData {ASSISTant} | R Documentation |

## A data generation function along the lines of what was used in the Lai, Lavori, Liao paper. score rather than a normal distribution

### Description

A data generation function along the lines of what was used in the Lai, Lavori, Liao paper. score rather than a normal distribution

### Usage

```
generateNormalData(prevalence, N, mean, sd)
```

### Arguments

`prevalence` |
a vector of group prevalences (length denoted by J below) |

`N` |
the sample size to generate |

`mean` |
a 2 x J matrix of means under the null (first row) and alternative for each group |

`sd` |
a 2 x J matrix of standard deviations under the null (first row) and alternative for each group |

### Value

a three-column data frame of `subGroup`

, `trt`

(0 or 1), and `score`

[Package

*ASSISTant*version 1.4.3 Index]