R/get_predictors.R
get_predictors.Rd
get_predictors returns matrix of predictor variable data elements
get_predictors(y, betas, corr, p, error_fun)
y | target value observations |
---|---|
betas | coefficients to use to make the target values |
corr | correlation parameters that is a vector of length p. The X columns created with a correlation parameter value greater than 0 are authentic predictors and those with no correlation parameter are noise |
p | number of predictive variables |
error_fun | error function |
matrix of continuous predictive variables