Learn R Programming

pARI (version 1.1.3)

simulateData: simulate normal distributed data

Description

Simulate normal distributed data.

Usage

simulateData(pi0,m,n, rho, seed = NULL, power = 0.8, alpha = 0.05)

Value

Returns a matrix with dimensions \(m \times n\).

Arguments

pi0

Numeric value in `[0,1]`. Proportion of true null hypothesis.

m

Numeric value. Number of variables.

n

Numeric value. Number of observations.

rho

Numeric value in `[0,1]`. Level of equi-correlation between pairs of variables.

seed

Integer value. If you want to specify the seed. Default to to NULL

power

Numeric value in `[0,1]`. Level of power. Default to 0.8.

alpha

Numeric value in `[0,1]`. \(\alpha\) level to control the family-wise error rate. Default to 0.05.

Author

Angela Andreella