print.lr: Print Logistic Regression Model

View source: R/LogisticRegression.R

print.lrR Documentation

Print Logistic Regression Model

Description

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

Usage

## 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

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 Aug. 20, 2023, 3:25 a.m.