Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

blr_test_lr

Likelihood ratio test


Description

Performs the likelihood ratio test for full and reduced model.

Usage

blr_test_lr(full_model, reduced_model)

## Default S3 method:
blr_test_lr(full_model, reduced_model)

Arguments

full_model

An object of class glm; model with all predictors.

reduced_model

An object of class glm; nested model. Optional if you are comparing the full_model with an intercept only model.

Value

Two tibbles with model information and test results.

See Also

Examples

# compare full model with intercept only model
# full model
model_1 <- glm(honcomp ~ female + read + science, data = hsb2,
            family = binomial(link = 'logit'))

blr_test_lr(model_1)

# compare full model with nested model
# nested model
model_2 <- glm(honcomp ~ female + read, data = hsb2,
            family = binomial(link = 'logit'))

blr_test_lr(model_1, model_2)

blorr

Tools for Developing Binary Logistic Regression Models

v0.3.0
MIT + file LICENSE
Authors
Aravind Hebbali [aut, cre] (<https://orcid.org/0000-0001-9220-9669>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.