Learn R Programming

MultiGroupO (version 0.4.0)

fun.sim: Simulation function of quantitative multigroup data under a multivariate normal distribution

Description

Simulation function of quantitative multigroup data under a multivariate normal distribution

Usage

fun.sim(g, mean1, d, n.var, sds2, corr)

Value

return an grafics

Arguments

g

An vector of the size of each group

mean1

An vector of the population means structure

d

distance d for the structure of population means

n.var

2x1 dimension vector whose first component is the number of random variables to simulate and the second component number of noise variables to simulate

sds2

An vector of the variances to simulate for each group noise variables

corr

An vector of the correlation to simulate for each group and noise variables

Examples

Run this code
fun.sim(g=c(20,20),mean1=2,d=0,sds2=c(1,1,1),corr=c(0.5,0.5,0),n.var=c(50,1))

Run the code above in your browser using DataLab