Learn R Programming

rERR (version 0.1)

f_lrt: likelihood ratio test

Description

function that thtat compute the lrt test for a nested and a nesting models

Usage

f_lrt(fit1, fit2)

Arguments

fit1

the nested model

fit2

the nesting model

Value

a list containing the lrt statistic and the corresponding p_value from the Chi-square test

Examples

Run this code
# NOT RUN {
 lrt(fit1,fit2)
# }

Run the code above in your browser using DataLab