Learn R Programming

FRESA.CAD (version 3.4.7)

modelFitting: 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,
	              ...)

Value

A fitted model of the type defined in type

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

Author

Jose G. Tamez-Pena and Antonio Martinez-Torteya