modelFitting: Fit a model to the data

modelFittingR Documentation

Fit a model to the data

Description

This function fits a linear, logistic, or Cox proportional hazards regression model to given data

Usage

	modelFitting(model.formula,
	             data,
	             type = c("LOGIT", "LM", "COX","SVM"),
	             fitFRESA=TRUE,
	              ...)

Arguments

model.formula

An object of class formula with the formula to be used

data

A data frame where all variables are stored in different columns

type

Fit type: Logistic ("LOGIT"), linear ("LM"), Cox proportional hazards ("COX") or "SVM"

fitFRESA

if true it will perform use the FRESA cpp code for fitting

...

Additional parameters for fitting a default glm object

Value

A fitted model of the type defined in type

Author(s)

Jose G. Tamez-Pena and Antonio Martinez-Torteya


FRESA.CAD documentation built on Nov. 25, 2023, 1:07 a.m.