logit: Logistic Regression

Description Usage Arguments Details Value Author(s) Examples

Description

The function estimates a logistic regression model with the Maximum-Likelihood Method.

Usage

1
  logit(fml, dat)

Arguments

fml

Formula-object of the desired independent and dependent variables: formula.object <- as.formula("y ~ x1 + x2 + ... xn").

dat

Data frame which contains the variables specified in the formula-object.

Details

Estimates a logistic regression for a binary independent variable where the data generating process can be described with a Bernoulli-distribution. Parameters are maximised with the Maximum-Likelihood-Method using a Quasi-Newton-Algorithm.

Value

Output are the coefficient estimates of a logistic regression and its respective standard errors.

Author(s)

Johannes Besch, besch@ipz.uzh.ch, Marco Radojevic radojevic@ipz.uzh.ch

Examples

1
2
3
require(MASS)
model1 = glm(Sex ~ Height + Smoke + Pulse, data=MASS::survey, family=binomial(link=logit))
summary(model1)

RadojevicM/OLSLog2 documentation built on May 28, 2019, 2:26 p.m.