print.lr: Print Logistic Regression Model

Description Usage Arguments Value Examples

View source: R/LR_OOP.R

Description

Displays important output from a lr object; the parameter estimates and the maximised log-likelihood value.

Usage

1
2
## S3 method for class 'lr'
print(x, ...)

Arguments

x

an object of class "lr", the output from lr

...

further arguments

Value

a printed, named vector of coefficients and log-likelihood value at these estimates

Examples

1
2
3
4
y = sample(0:1, 50, replace=TRUE)
d = data.frame(y = y, x = rnorm(10*y + 15))
fit = lr(y ~ x, data = d)
print(fit)

jakespiteri/chicagocrime documentation built on Jan. 24, 2020, 1:26 a.m.