R: Generate multivariate normal sample

generateMultivariateSample {factorMerger} | R Documentation

## Generate multivariate normal sample

### Description

Produces a random sample of k groups and d dimensions drawn from the normal distribution with different parameters.

### Usage

    generateMultivariateSample(N, k, d = 2)

### Arguments

`N` | Sample size.
`k` | Number of groups.
`d` | Number of dimensions.

### Value

`list` with two fields: matrix `response` and factor variable `factor`.

### Examples

    generateMultivariateSample(N = 100, k = 10, d = 5)

[Package factorMerger version 0.3.6 Index]