fitLinearModel: Fitting linear models

View source: R/logicDT.R

fitLinearModelR Documentation

Fitting linear models

Description

Method for fitting linear models. In the fashion of this package, only binary and quantitative outcomes are supported.

Usage

fitLinearModel(y, Z, logistic = TRUE)

Arguments

y

Response vector. 0-1 coding for binary outcomes, otherwise conventional regression is performed.

Z

Numeric vector of (univariate) input samples.

logistic

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)

Details

For binary outcomes, predictions are cut at 0 or 1 for generating proper probability estimates.

Value

An object of class "linear" which contains a numeric vector of the fitted parameters b and c.


logicDT documentation built on Jan. 14, 2023, 5:06 p.m.