Description Usage Arguments Value See Also Examples
Performs the likelihood ratio test for full and reduced model.
1 2 3 4 | blr_test_lr(full_model, reduced_model)
## Default S3 method:
blr_test_lr(full_model, reduced_model)
|
full_model |
An object of class |
reduced_model |
An object of class |
Two tibbles with model information and test results.
Other model fit statistics:
blr_model_fit_stats()
,
blr_multi_model_fit_stats()
,
blr_pairs()
,
blr_rsq_adj_count()
,
blr_rsq_cox_snell()
,
blr_rsq_effron()
,
blr_rsq_mcfadden_adj()
,
blr_rsq_mckelvey_zavoina()
,
blr_rsq_nagelkerke()
1 2 3 4 5 6 7 8 9 10 11 12 13 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.