| fit-methods | R Documentation |
These methods provide the standard print(), summary(), predict(), and
coef() interfaces for funcml_fit objects.
## S3 method for class 'funcml_fit'
print(x, ...)
## S3 method for class 'funcml_fit'
summary(object, ...)
## S3 method for class 'funcml_fit'
predict(
object,
newdata,
type = NULL,
class_level = NULL,
pos_level = NULL,
na_action = object$na_action,
...
)
## S3 method for class 'funcml_fit'
coef(object, ...)
x |
A |
... |
Additional arguments passed to the underlying method. |
object |
A |
newdata |
Data frame of new observations. |
type |
Prediction type override. |
class_level |
Target class for multiclass probability predictions. |
pos_level |
Alias for the binary positive class. |
na_action |
NA handling for new data. |
print() and summary() return the input object invisibly.
predict() returns predictions in the requested format. coef()
returns a named numeric coefficient vector when available.
fit_obj <- fit(mpg ~ wt + hp, data = mtcars, model = "glm")
print(fit_obj)
summary(fit_obj)
predict(fit_obj, newdata = mtcars[1:3, , drop = FALSE])
coef(fit_obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.