Description Usage Arguments Details Value Examples
lr
is used to fit a logistic regression model for a binary response variable.
1 |
formula |
an object of class |
data |
a required data frame containing the variables in the model |
init |
optional initial conditions to be passed to optimisation of the log-likelihood |
The form of the formula
argument will be of the form response ~ predictor1 + predictor2 + ...
,
with predictor1
and predictor2
being named columns of the data frame in data
.
The log-likelihood (from loglik_lr
) is maximised using irls.lr
with initial estimates given by init
.
If no initial values are supplied, this uses a vector of zeros instead.
An S3 object of class 'lr', which is a list containing
|
a vector of coefficients corresponding to covariates specified in |
|
the |
|
the |
|
the model matrix |
|
value of the final log-likelihood at the values of |
|
number of iterations performed to retrieve the maximised log-likelihood |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.