fitLinearModel | R Documentation |
Method for fitting linear models. In the fashion of this package, only binary and quantitative outcomes are supported.
fitLinearModel(y, Z, logistic = TRUE)
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
( |
For binary outcomes, predictions are cut at 0 or 1 for generating proper probability estimates.
An object of class "linear" which contains a numeric vector of the fitted parameters b and c.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.