| mdl_glm {ddml} | R Documentation |
Wrapper for stats::glm().
Description
Simple wrapper for stats::glm().
Usage
mdl_glm(y, X, ...)
Arguments
y |
The outcome variable. |
X |
The feature matrix. |
... |
Additional arguments passed to |
Value
mdl_glm returns an object of S3 class mdl_glm as a
simple mask of the return object of stats::glm().
See Also
Other ml_wrapper:
mdl_glmnet(),
mdl_ranger(),
mdl_xgboost(),
ols()
Examples
glm_fit <- mdl_glm(sample(0:1, 100, replace = TRUE),
matrix(rnorm(1000), 100, 10))
class(glm_fit)
[Package ddml version 0.2.2 Index]