Functions for simulating data

.simulate.block(n, p, mode, family = "gaussian")

.simulate.grid(n, p, rho, pi, family = "gaussian")

.simulate.mode(n, p, mode, family = "gaussian")

Arguments

n

sample size: positive integer

p

dimensionality: positive integer

mode

character "sparse", "dense" or "mixed"

family

character "gaussian", "binomial" or "poisson"

rho

correlation: numeric between \(0\) and \(1\)

pi

effects: numeric between \(0\) (sparse) and \(1\) (dense)

Value

List of vector y and matrix X.

Examples

NA
#> [1] NA