generateX: Generates the design matrix

Description Usage Arguments Value Examples

Description

Generates the design matrix

Usage

1
generateX(n, covMatSqrt, rand = "rnorm", m = NULL, ...)

Arguments

n

number of observations

covMatSqrt

square root of the design covariance, possibly produced by generateCov

rand

character string giving the name of a function generating random numbers

m

optional mean vector for the design matrix

...

optional named arguments passed to the random number generating function

Value

Returns a n x ncol(covMatSqrt) matrix.

Examples

1
generateX(100, diag(1,10), 'rnorm')

dajmcdon/cplr documentation built on May 14, 2019, 3:29 p.m.