Skip to contents

Likelihood ratio test for nested models

Usage

likelihood_ratio_test(ll_restricted, ll_full, df_diff)

Arguments

ll_restricted

Log-likelihood of the restricted model.

ll_full

Log-likelihood of the full model.

df_diff

Difference in degrees of freedom.

Value

A morie_specification_test.

Examples

r <- likelihood_ratio_test(ll_restricted = -120, ll_full = -100,
                           df_diff = 2L)
r$p_value
#> [1] 2.061154e-09