Likelihood ratio test

lrt(null, alt, data, null_par, alt_par, dof = NULL, ...)

Arguments

null

the likelihood model for the simpler (null) hypothesis nested within the alternative model

alt

the likelihood model for the more complicated (alternative) hypothesis

data

a data frame

null_par

parameter values under the null model

alt_par

parameter values under the alternative model

dof

degrees of freedom (computed automatically if NULL)

...

additional arguments passed to loglik

Value

likelihood ratio test