shared_dgp_lib_args | R Documentation |
DGP
library functions.Arguments that are shared by multiple DGP
library functions.
betas |
Coefficient vector for observed design matrix. If a scalar is provided, the coefficient vector is constant. If |
betas_sd |
(Optional) SD of normal distribution from which to draw |
betas_unobs |
Coefficient vector for unobserved design matrix. If a scalar is provided, the coefficient vector is constant. If |
betas_unobs_sd |
(Optional) SD of normal distribution from which to draw |
betas_corr |
Coefficient vector for correlated features. If a scalar is provided, the coefficient vector is constant. If |
betas_corr_sd |
(Optional) SD of normal distribution from which to draw |
betas_uncorr |
Coefficient vector for uncorrelated features. If a scalar is provided, the coefficient vector is constant. If |
betas_uncorr_sd |
(Optional) SD of normal distribution from which to draw |
data_split |
Logical; if |
err |
Function from which to generate simulated error vector. Default is
|
intercept |
Scalar intercept term. |
n, .n |
Number of samples. |
p, .p |
Number of features. |
return_support |
Logical specifying whether or not to return a vector of
the support column names. If |
return_values |
Character vector indicating what objects to return in list. Elements in vector must be one of "X", "y", "support". |
support |
Vector of feature indices in the true support of the DGP. |
train_prop |
Proportion of data in training set if |
X |
Data matrix or data frame. |
y |
Response vector. |
... |
Other arguments to pass to err() to generate the error vector. |
A list of the named objects that were requested in
return_values
. See brief descriptions below.
A data.frame
.
A response vector of length nrow(X)
.
A vector of feature indices indicating all features used in the true support of the DGP.
Note that if data_split = TRUE
and "X", "y"
are in return_values
, then the returned list also contains slots for
"Xtest" and "ytest".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.