powered by
function that thtat compute the lrt test for a nested and a nesting models
f_lrt(fit1, fit2)
the nested model
the nesting model
a list containing the lrt statistic and the corresponding p_value from the Chi-square test
# NOT RUN { lrt(fit1,fit2) # }
Run the code above in your browser using DataLab