generateY: Generates the response variable

Description Usage Arguments Value Examples

Description

Generates the response variable

Usage

1
generateY(X, b, rand, ...)

Arguments

X

a design matrix, possibly prouced by generateX

b

a coefficient vector, possibly produced by generateb

rand

character string giving the name of a function generating random numbers

...

optional named arguments passed to the random number generating function

Value

Returns a vector of length nrow(X).

Examples

1
2
3
X = generateX(100, diag(1,10), 'rnorm')
b = generateb(10, 'constNorm')
Y = generateY(X, b, 'rnorm', sd=.1)

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