fit-methods: Methods for fitted funcml models.

fit-methodsR Documentation

Methods for fitted funcml models.

Description

These methods provide the standard print(), summary(), predict(), and coef() interfaces for funcml_fit objects.

Usage

## 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, ...)

Arguments

x

A funcml_fit object.

...

Additional arguments passed to the underlying method.

object

A funcml_fit object.

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.

Value

print() and summary() return the input object invisibly. predict() returns predictions in the requested format. coef() returns a named numeric coefficient vector when available.

Examples

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)

funcml documentation built on Aug. 22, 2026, 5:08 p.m.