fit_model {mmiCATs}R Documentation

Fit a Linear Model with Robust Estimation

Description

This function fits a linear model using robust estimation methods. It allows the use of either the 'robust' or 'robustbase' packages for fitting the model.

Usage

fit_model(engine, formula, data, ...)

Arguments

engine

A character string specifying the engine to be used for model fitting. Must be either "robust" or "robustbase".

formula

An object of class formula (or one that can be coerced to that class): a symbolic description of the model to be fitted.

data

A dataframe

...

Additional arguments to be passed to the underlying fitting function.

Value

A fitted model.


[Package mmiCATs version 0.1.1 Index]