Method for fitting linear models. In the fashion of this package, only binary and quantitative outcomes are supported.
fitLinearModel(y, Z, logistic = TRUE)An object of class "linear" which contains a numeric
vector of the fitted parameters b and c.
Response vector. 0-1 coding for binary outcomes, otherwise conventional regression is performed.
Numeric vector of (univariate) input samples.
Logical indicating whether, in the case of a binary
outcome, a logistic regression model should be fitted
(TRUE) or a LDA model should be fitted (FALSE)
For binary outcomes, predictions are cut at 0 or 1 for generating proper probability estimates.