fit_model_g {mmiCATs}R Documentation

Fit a Generalized Linear Model with Robust Estimation

Description

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

Usage

fit_model_g(engine, formula, data, family, method, ...)

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 containing the variables in the model.

family

A description of the error distribution and link function to be used in the model (See stats::family for details of family functions).

method

Fitting method to be used. Can vary depending on the selected engine.

...

Additional arguments to be passed to the underlying fitting function.

Value

A fitted model


[Package mmiCATs version 0.1.1 Index]