Learn R Programming

factorMerger (version 0.4.0)

generateMultivariateSample: 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

Run this code
# NOT RUN {
generateMultivariateSample(N = 100, k = 10, d = 5)

# }

Run the code above in your browser using DataLab