genDesignMat: Return a design matrix

Description Usage Arguments Value Examples

Description

This function generates a design matrix of given size, whose rows are independent Gaussian with decaying covariance.

Usage

1
genDesignMat(n, p, r)

Arguments

n

Integer value of sample size

p

Integer number of variables

r

Rate (0 to 1) of decay so the (i,j)th covariance is r^|i-j|

Value

Matrix of size n x p

Examples

1
X <- genDesignMat(150, 200, 0.5)

JieGroup/bc documentation built on June 1, 2019, 12:48 p.m.