Description Usage Arguments Value References See Also
This function fits a model on the training data for a given alogorithm.
1 2 3 4 5 6 7 8 9 |
X |
a n by p matrix, containing all the covariates. |
Y |
a n by 1 matrix, containing the response variables. |
binary |
whether the response variable is binary (will be converted to factors if TRUE; default: FALSE). |
algo |
a fitting algorithm. |
train.fun |
a function to perform model fitting on the training data. |
active.fun |
a function which takes the output of train.fun and outputs the selected variables. |
verbose |
whether to show intermediate progress (default: FALSE). |
A list of two objects. out: the fitted model from train.fun; S: a list of selected variables.
LZ-LJ:2020floodgate
Other methods:
calculate.V_mean()
,
calulate.mu_Xk()
,
fg.inference.binary()
,
fg.inference()
,
floodgate.binary()
,
floodgate()
,
inference_general()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.