fibre | R Documentation |
fibre
fibre()
fits a model.
fibre(x, ...)
## Default S3 method:
fibre(x, ...)
## S3 method for class 'data.frame'
fibre(
x,
y,
intercept = TRUE,
engine = c("inla", "glmnet", "torch"),
engine_options = list(),
ncores = NULL,
verbose = 0,
fit = TRUE,
...
)
## S3 method for class 'matrix'
fibre(
x,
y,
intercept = TRUE,
engine = c("inla", "glmnet", "torch"),
engine_options = list(),
ncores = NULL,
verbose = 0,
fit = TRUE,
...
)
## S3 method for class 'formula'
fibre(
formula,
data,
intercept = TRUE,
family = "gaussian",
engine = c("inla", "glmnet", "torch"),
engine_options = list(),
ncores = NULL,
verbose = 0,
fit = TRUE,
...
)
## S3 method for class 'recipe'
fibre(
x,
data,
intercept = TRUE,
engine = c("inla", "glmnet", "torch"),
engine_options = list(),
ncores = NULL,
verbose = 0,
fit = TRUE,
...
)
x |
Depending on the context:
|
... |
Not currently used, but required for extensibility. |
y |
When
|
intercept |
A logical. Should an intercept be included in the model? |
engine |
A single character. The engine to use for fitting the model. |
engine_options |
A list of options to pass to the engine. |
ncores |
An integer. The number of cores to use for parallel processing. |
verbose |
An integer. The level of verbosity. |
fit |
A logical. Should the model be fit? If |
formula |
A formula specifying the outcome terms on the left-hand side, and the predictor terms on the right-hand side. |
data |
When a recipe or formula is used,
|
A fibre
object.
predictors <- mtcars[, -1]
outcome <- mtcars[, 1]
# XY interface
#mod <- fibre(predictors, outcome)
# Formula interface
#mod2 <- fibre(mpg ~ ., mtcars)
# Recipes interface
#library(recipes)
#rec <- recipe(mpg ~ ., mtcars)
#rec <- step_log(rec, disp)
#mod3 <- fibre(rec, mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.