Learn R Programming

secr (version 1.3.0)

LR.test: Likelihood Ratio Test for SECR Models

Description

Compute likelihood ratio test to compare two fitted models, one nested within the other.

Usage

LR.test(secr1, secr2)

Arguments

secr1
fitted secr model
secr2
fitted secr model

Value

  • Object of class 'htest', a list with components
  • statisticvalue the test statistic
  • parameterdegrees of freedom of the approximate chi-squared distribution of the test statistic
  • p.valueprobability of test statistic assuming chi-square distribution
  • methodcharacter string indicating the type of test performed
  • data.namecharacter string with names of secr models compared

Details

The test statistic is twice the difference of the maximized likelihoods. It is compared to a chi-square distribution with df equal to the number of extra parameters in the more complex model. The models must be nested (no check is performed - this is up to the user), but either secr1 or secr2 may be the more general model.

See Also

AIC.secr, score.test

Examples

Run this code
data(secrdemo)
    AIC (secrdemo.0, secrdemo.b)
    LR.test  (secrdemo.0, secrdemo.b)

Run the code above in your browser using DataLab