print.lr: Print Logistic Regression Model

Description Usage Arguments Value Examples

View source: R/LogisticRegression.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)

dannyjameswilliams/danielR documentation built on Feb. 1, 2021, 6:39 p.m.