apd_hat_values()
fits a model.
apd_hat_values(x, ...) # S3 method for default apd_hat_values(x, ...) # S3 method for data.frame apd_hat_values(x, ...) # S3 method for matrix apd_hat_values(x, ...) # S3 method for formula apd_hat_values(formula, data, ...) # S3 method for recipe apd_hat_values(x, data, ...)
x | Depending on the context:
|
---|---|
... | Not currently used, but required for extensibility. |
formula | A formula specifying the predictor terms on the right-hand side. No outcome should be specified. |
data | When a recipe or formula is used,
|
A apd_hat_values
object.
predictors <- mtcars[, -1] # Data frame interface mod <- apd_hat_values(predictors) # Formula interface mod2 <- apd_hat_values(mpg ~ ., mtcars) # Recipes interface library(recipes)#> Warning: package ‘recipes’ was built under R version 3.6.2#>#> #>#>#> #>#>#> #>#> #>#>#> #>