fitLinearModel {logicDT} | R 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
( |
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.
[Package logicDT version 1.0.4 Index]