sim_dat_LR: sim_dat_LR

Description Usage Arguments Details Value Author(s)

Description

A data simulation function which is used for glmnet benchmark. The data set size for L2-regularized

Usage

1
2
sim_dat_LR(N, p, rho = 0.95, snr = 3, nmu = 0, nsd = 1,
  control = TRUE)

Arguments

N

number of observations

p

number of predictors

rho

correlation of X_j and X_j'. Default is 0.95

snr

signal-noise ratio threahold. Default is 3.0

nmu

noise distribution's mean. Default is 0.0

nsd

noise distribution's sd. Default is 1.0

control

Optional(TRUE/FALSE), whether control whiten noise and signal's SNR

Details

Logistical regression data simulation

Value

x p predictors' matrix for N observation.

y N observation (1 or 0) which is based on real value of y0 and noise.

beta p real beta value

Author(s)

Eric xin Zhou xxz220@miami.edu


xinchoubiology/RGallery documentation built on May 4, 2019, 1:06 p.m.