Learn R Programming

epiDisplay (version 3.5.0.2)

print lrtest: Print lrtest results

Description

Print results for likelihood ratio test

Usage

# S3 method for lrtest
print(x, ...)

Arguments

x

object of class 'lrtest'

...

further arguments passed to or used by methods.

See Also

'logistic.display'

Examples

Run this code
# NOT RUN {
model0 <- glm(case ~ induced + spontaneous, family=binomial, data=infert)
model1 <- glm(case ~ induced, family=binomial, data=infert)
lrtest (model0, model1)
lrtest (model1, model0) -> a
a
# }

Run the code above in your browser using DataLab